Sha256: 0b7efd6820ce6d6b2d40000fe5883fad1d3565f7d301ff05ef899eb84805e975

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

require "spec_helper.rb"

describe "cinii_books/index" do
  describe "cinii books search menu" do
    it "should reflect query params for views", vcr: true do
      params[:query] = "test"
      assign(:query, "test")
      books = CiniiBook.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://ci.nii.ac.jp/books/search?q=test"
    end
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enju_nii-0.2.0 spec/views/cinii_books/index.html.erb_spec.rb
enju_nii-0.2.0.beta.3 spec/views/cinii_books/index.html.erb_spec.rb
enju_nii-0.2.0.beta.2 spec/views/cinii_books/index.html.erb_spec.rb
enju_nii-0.2.0.beta.1 spec/views/cinii_books/index.html.erb_spec.rb