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

add a test for :views_prefix.

This commit is contained in:
Nick Sutterer 2014-05-08 15:29:50 +10:00
parent 90fa8a5001
commit 7548a245af
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1 @@
<p><%= current_page %></p>

View file

@ -15,6 +15,11 @@ describe 'Kaminari::ActionViewExtension', :if => defined?(Rails) do
lambda { helper.escape_javascript(helper.paginate @users, :params => {:controller => 'users', :action => 'index'}) }.should_not raise_error lambda { helper.escape_javascript(helper.paginate @users, :params => {:controller => 'users', :action => 'index'}) }.should_not raise_error
end end
end end
context 'accepts :view_prefixes option' do
subject { helper.paginate @users, :views_prefix => "alternative/" }
it { should eq("<p>1</p>") }
end
end end
describe '#link_to_previous_page' do describe '#link_to_previous_page' do