Sha256: 199c4ea0521f750b51beacceedff7cf301e4d5d68555c2b18e8a4062b12e580c
Contents?: true
Size: 1.12 KB
Versions: 13
Compression:
Stored size: 1.12 KB
Contents
require 'rails_helper' RSpec.describe 'Checkouts', type: :system do include Devise::Test::IntegrationHelpers fixtures :all before(:each) do CarrierType.find_by(name: 'volume').update(attachment: File.open("#{Rails.root.to_s}/app/assets/images/icons/book.png")) end describe 'When logged in as Librarian' do it 'should contain query params in the facet' do sign_in users(:librarian1) visit checkout_path(checkouts(:checkout_00001)) expect(page).to have_content '利用者番号' expect(page).to have_content checkouts(:checkout_00001).user.username expect(page).to have_content checkouts(:checkout_00001).user.profile.user_number end end describe 'When not logged in', solr: true do before(:each) do Checkout.reindex end it 'should contain query params in the facet' do sign_in users(:librarian1) visit checkouts_path(days_overdue: 10) expect(page).to have_link 'RSS', href: checkouts_path(format: :rss, days_overdue: 10) expect(page).to have_link 'TSV', href: checkouts_path(format: :txt, days_overdue: 10, locale: 'ja') end end end
Version data entries
13 entries across 13 versions & 1 rubygems