I have the vcr and webmock gems installed.
features/support/vcr_setup.rb:
require 'vcr'
VCR.configure do |c|
c.cassette_library_dir = 'vcr_cassettes'
c.hook_into :webmock
end
features/step_definitions/user.rb:
VCR.use_cassette('login to shopify') do
Given /^I am a logged in user$/ do
@shop = create(:shop)
visit root_path
fill_in :shop, :with => @shop.shopify_domain
click_button 'Install'
expect(page).to have_content("We'll automatically")
end
end
When I run my suite, I'm getting the alert that I am making an HTTP request. Which step am I missing to properly record the first cassette so that I can re-use for future tests?