spec/views/items/index.html.erb_spec.rb in enju_biblio-0.2.3 vs spec/views/items/index.html.erb_spec.rb in enju_biblio-0.2.4
- old
+ new
@@ -3,17 +3,17 @@
describe "items/index" do
before(:each) do
@items = assign(:items,
Kaminari.paginate_array( [
- FactoryGirl.create(:item),
+ FactoryBot.create(:item),
], total_count: 1).page(1)
)
facet1 = double("Facet for available on shelf")
allow(facet1).to receive(:count).and_return(1)
allow(facet1).to receive(:value).and_return("Available On Shelf")
@circulation_status_facet = assign(:circulation_status_facet, [facet1])
- user = FactoryGirl.create(:librarian)
+ user = FactoryBot.create(:librarian)
allow(view).to receive(:policy) do |record|
Pundit.policy(user, record)
end
end