Sha256: eda4b19cb7420cd89a8c04f63b1859231598dc2350b7dab37d5eb985a6a5b17e
Contents?: true
Size: 880 Bytes
Versions: 3
Compression:
Stored size: 880 Bytes
Contents
require 'solidus_braintree_spec_helper' RSpec.describe "viewing the configuration interface", type: :feature do stub_authorization! # Regression to ensure this page still renders on old versions of solidus it "doesn't raise any errors due to unavailable route helpers" do visit "/solidus_braintree/configurations/list" expect(page).to have_content("Braintree Configurations") end # Regression to ensure this page renders on Solidus 2.4 it "doesn't raise any errors due to unavailable preference field partial" do Rails.application.config.spree.payment_methods << SolidusBraintree::Gateway Spree::PaymentMethod.create!( type: 'SolidusBraintree::Gateway', name: 'Braintree Payments' ) visit '/admin/payment_methods' page.find('a[title="Edit"]').click expect(page).to have_field 'Name', with: 'Braintree Payments' end end
Version data entries
3 entries across 3 versions & 1 rubygems