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:
parent
90fa8a5001
commit
7548a245af
2 changed files with 6 additions and 0 deletions
1
app/views/alternative/kaminari/_paginator.erb
Normal file
1
app/views/alternative/kaminari/_paginator.erb
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p><%= current_page %></p>
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue