Sha256: 81a40157ac6f7ccb2b0dbf8e7868c81fe3caa57d1ba6651ada36d2e99cfb1348

Contents?: true

Size: 562 Bytes

Versions: 10

Compression:

Stored size: 562 Bytes

Contents

require "spec_helper.rb"

describe "ndl_books/index" do
  describe "ndl search menu" do
    it "should reflect query params for views", vcr: true do
      params[:query] = "test"
      assign(:query, "test")
      books = NdlBook.search(params[:query])
      assign(:books, Kaminari.paginate_array(books[:items],
                                             total_count: books[:total_entries],
                                             ).page(1).per(10))
      render
      expect(rendered).to include "http://iss.ndl.go.jp/books?any=test"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
enju_ndl-0.3.0 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.3.0.rc.1 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.3.0.beta.1 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.2.3 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.2.2 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.2.1 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.2.0 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.2.0.beta.3 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.2.0.beta.2 spec/views/ndl_books/index.html.erb_spec.rb
enju_ndl-0.2.0.beta.1 spec/views/ndl_books/index.html.erb_spec.rb