Skip to content

Instantly share code, notes, and snippets.

@henrymazza
Created February 22, 2021 14:07
Show Gist options
  • Save henrymazza/5327e2f660b488353cc32404ec0b145b to your computer and use it in GitHub Desktop.
Save henrymazza/5327e2f660b488353cc32404ec0b145b to your computer and use it in GitHub Desktop.
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'FeedsController with Capybara', type: :feature do
before do
# control group
create_list :auction, 10, :with_lots, lots_size: 10, start_date: 5.years.ago,
end_date: 4.years.ago
end
it 'capybara works' do
create_list :auction, 5, :with_lots, lots_size: 10
visit '/feeds'
expect(Lot.count).to be 2_400
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment