Browse Source

lint fixes

pull/557/head
Dushan Despotovic 3 years ago committed by Kat
parent
commit
e57d430dd8
  1. 6
      spec/features/user_spec.rb

6
spec/features/user_spec.rb

@ -553,7 +553,7 @@ RSpec.describe "User Features" do
let!(:support_user) { FactoryBot.create(:user, :support) } let!(:support_user) { FactoryBot.create(:user, :support) }
before do before do
50.times { FactoryBot.create(:organisation) } FactoryBot.create_list(:organisation, 50)
allow(SecureRandom).to receive(:random_number).and_return(otp) allow(SecureRandom).to receive(:random_number).and_return(otp)
visit("/logs") visit("/logs")
fill_in("user[email]", with: support_user.email) fill_in("user[email]", with: support_user.email)
@ -570,8 +570,8 @@ RSpec.describe "User Features" do
it "they should see all organisations listed in the organisations page, with pagination" do it "they should see all organisations listed in the organisations page, with pagination" do
visit("/organisations") visit("/organisations")
expect(page).to have_css('#all-organisations-table') expect(page).to have_css("#all-organisations-table")
expect(page).to have_css('.app-pagination__link') expect(page).to have_css(".app-pagination__link")
end end
end end
end end

Loading…
Cancel
Save