Sha256: 280b63658652646ebc0dae6f6472ef1cce8108bcda2ce69bef85ef28537a0e7c
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 Bytes
Contents
require 'spec_helper' RSpec.describe "viewing the configuration interface" 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
solidus_paypal_braintree-2.0.0 | spec/features/backend/configuration_spec.rb |
solidus_braintree-2.0.0 | spec/features/backend/configuration_spec.rb |