1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

s/view_prefix/views_prefix/

This commit is contained in:
Akira Matsuda 2016-11-07 12:03:54 +09:00
parent 05a989f824
commit f39c0c7124

View file

@ -27,7 +27,7 @@ describe 'Kaminari::ActionViewExtension', :if => defined?(::Rails::Railtie) && d
it { should match(/bootstrap-page-link/) } it { should match(/bootstrap-page-link/) }
end end
context 'accepts :view_prefix option' do context 'accepts :views_prefix option' do
before { helper.controller.append_view_path File.join(Gem.loaded_specs['kaminari-core'].gem_dir, 'spec/fake_app/views') } before { helper.controller.append_view_path File.join(Gem.loaded_specs['kaminari-core'].gem_dir, 'spec/fake_app/views') }
subject { helper.paginate @users, :views_prefix => "alternative/", :params => {:controller => 'users', :action => 'index'} } subject { helper.paginate @users, :views_prefix => "alternative/", :params => {:controller => 'users', :action => 'index'} }
it { should eq(" <b>1</b>\n") } it { should eq(" <b>1</b>\n") }