mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
FIX: detection of error changed, so you can clear errors
This commit is contained in:
@ -21,8 +21,10 @@ HTML
|
||||
field = ThemeField.create!(theme_id: 1, target: 0, name: "scss", value: css)
|
||||
field.reload
|
||||
expect(field.error).not_to eq(nil)
|
||||
field.value = ""
|
||||
field.value = "body {color: blue};"
|
||||
field.save!
|
||||
field.reload
|
||||
|
||||
expect(field.error).to eq(nil)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user