Skip to content

Commit d926584

Browse files
committed
Style/BarePercentLiterals
1 parent 21e634a commit d926584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec/rails/matchers/be_a_new_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def new_record?; true; end
129129
expect {
130130
expect(record).to be_a_new(record.class).with(:foo => 'bar')
131131
}.to raise_error(
132-
%Q(attribute {"foo"=>"bar"} was not set on #{record.inspect})
132+
%(attribute {"foo"=>"bar"} was not set on #{record.inspect})
133133
)
134134
end
135135
end
@@ -178,7 +178,7 @@ def new_record?; false; end
178178
expect(record).to be_a_new(String).with(:foo => 'bar')
179179
}.to raise_error(
180180
"expected #{record.inspect} to be a new String and " +
181-
%Q(attribute {"foo"=>"bar"} was not set on #{record.inspect})
181+
%(attribute {"foo"=>"bar"} was not set on #{record.inspect})
182182
)
183183
end
184184
end

0 commit comments

Comments
 (0)