parent
f7abc05c2e
commit
a5be55b328
|
@ -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
|
||||
|
|
|
@ -52,8 +52,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
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue