Sha256: bbbcb940a2eb76d2592c2242fbeecc58d2ef37de91b1dedc35f150f3121943cf
Contents?: true
Size: 509 Bytes
Versions: 7
Compression:
Stored size: 509 Bytes
Contents
RSpec.feature 'Payment methods', type: :feature do background do sign_in_as! create(:admin_user) visit spree.admin_path click_link 'Settings' end # Regression test for #5 scenario 'can dismiss the banner' do allow_any_instance_of(Spree::User).to receive(:dismissed_banner?) { false } allow(Spree::PaymentMethod).to receive(:production).and_return(payment_methods = [double]) allow(payment_methods).to receive(:where).and_return([]) click_link 'Payment Methods' end end
Version data entries
7 entries across 7 versions & 1 rubygems