Follow-up to PR #726, no need to freeze strings in tests.

[skip ci]
This commit is contained in:
Jon Atack 2016-09-29 15:45:25 +02:00
parent f7abc05c2e
commit a5be55b328
2 changed files with 8 additions and 8 deletions

View File

@ -50,8 +50,8 @@ module Ransack
end
it 'should have default values for arrows' do
expect(Ransack.options[:up_arrow]).to eq '▼'.freeze
expect(Ransack.options[:down_arrow]).to eq '▲'.freeze
expect(Ransack.options[:up_arrow]).to eq '▼'
expect(Ransack.options[:down_arrow]).to eq '▲'
end
it 'changes default arrow strings' do
@ -66,8 +66,8 @@ module Ransack
end
expect(Ransack.options[:up_arrow])
.to eq '<i class="fa fa-long-arrow-up"></i>'.freeze
expect(Ransack.options[:down_arrow]).to eq 'U+02193'.freeze
.to eq '<i class="fa fa-long-arrow-up"></i>'
expect(Ransack.options[:down_arrow]).to eq 'U+02193'
# restore original state so we don't break other tests
Ransack.options = before

View File

@ -52,8 +52,8 @@ module Ransack
end
it 'should have default values for arrows' do
expect(Ransack.options[:up_arrow]).to eq '&#9660;'.freeze
expect(Ransack.options[:down_arrow]).to eq '&#9650;'.freeze
expect(Ransack.options[:up_arrow]).to eq '&#9660;'
expect(Ransack.options[:down_arrow]).to eq '&#9650;'
end
it 'changes default arrow strings' do
@ -68,8 +68,8 @@ module Ransack
end
expect(Ransack.options[:up_arrow])
.to eq '<i class="fa fa-long-arrow-up"></i>'.freeze
expect(Ransack.options[:down_arrow]).to eq 'U+02193'.freeze
.to eq '<i class="fa fa-long-arrow-up"></i>'
expect(Ransack.options[:down_arrow]).to eq 'U+02193'
# restore original state so we don't break other tests
Ransack.options = before