Sha256: d4c74da8a4da228c812fa6cf90935c76d0fe47c35d8543f8d97abcf11a930a49
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
require File.expand_path('../spec_helper', File.dirname(__FILE__)) include Kaminari::ActionViewExtension describe 'Kaminari::ActionViewExtension' do describe '#paginate' do before do @author = User.create! :name => 'author' @books = 2.times.map { @author.books_authored.create! } @books = Book.page(1) end subject { paginate( @books ) } it { should be_a(String) } context "escaping the pagination for javascript" do it "should escape for javascript" do lambda { escape_javascript( paginate( @books ) ) }.should_not raise_error end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kaminari-0.12.3 | spec/helpers/action_view_extension_spec.rb |
kaminari-0.12.2 | spec/helpers/action_view_extension_spec.rb |