spec/views/hyrax/admin/users/index.html.erb_spec.rb in hyrax-1.1.1 vs spec/views/hyrax/admin/users/index.html.erb_spec.rb in hyrax-2.0.0.beta1

- old
+ new

@@ -1,10 +1,10 @@ -describe 'hyrax/admin/users/index.html.erb', type: :view do +RSpec.describe 'hyrax/admin/users/index.html.erb', type: :view do let(:presenter) { Hyrax::Admin::UsersPresenter.new } let(:users) { [] } before do - (1..4).each { |i| users << FactoryBot.build(:user, display_name: "user#{i}", email: "email#{i}@example.com", last_sign_in_at: Time.zone.now - 15.minutes, created_at: Time.zone.now - 3.days) } + (1..4).each { |i| users << FactoryGirl.build(:user, display_name: "user#{i}", email: "email#{i}@example.com", last_sign_in_at: Time.zone.now - 15.minutes, created_at: Time.zone.now - 3.days) } allow(presenter).to receive(:users).and_return(users) assign(:presenter, presenter) end it "draws user list with all users" do