Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use single quotes to avoid double quotes escaping.

Pavel Balashou76ebc6a0089a
diff --git a/spec/lib/representable_spec.rb b/spec/lib/representable_spec.rb
index b19b63fd513..99f9b833499 100644
--- a/spec/lib/representable_spec.rb
+++ b/spec/lib/representable_spec.rb
@@ -46,7 +46,7 @@ RSpec.describe Representable do
property :title
end
- it { expect(UpcaseRepresenter.new(object).to_json).to eql("{\"TITLE\":\"test\"}") }
+ it { expect(UpcaseRepresenter.new(object).to_json).to eql('{"TITLE":"test"}') }
end
describe 'as_strategy with class responding to #call?' do
@@ -58,7 +58,7 @@ RSpec.describe Representable do
property :title
end
- it { expect(ReverseRepresenter.new(object).to_json).to eql("{\"eltit\":\"test\"}") }
+ it { expect(ReverseRepresenter.new(object).to_json).to eql('{"eltit":"test"}') }
end
describe 'as_strategy with class not responding to #call?' do