mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -37,7 +37,7 @@ describe JsonError do
|
||||
|
||||
describe "with a string" do
|
||||
it "returns the string in the error format" do
|
||||
expect(creator.create_errors_json("test error")).to eq({errors: ["test error"]})
|
||||
expect(creator.create_errors_json("test error")).to eq(errors: ["test error"])
|
||||
end
|
||||
end
|
||||
|
||||
@ -52,4 +52,3 @@ describe JsonError do
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user