diff options
author | Azul <azul@leap.se> | 2014-02-06 12:08:15 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-02-06 13:05:55 +0100 |
commit | e96d21ed7d2fce1d07fc381200d31919a2d93299 (patch) | |
tree | e55983a2e7c1b64659f12b2e592c02bed5048d36 /billing/test/integration | |
parent | c32b55caa141d02dab65df16bc3f2149c04603e5 (diff) |
integration test with en-EN language
Tests fail on machines that default to other available languages.
Also move setting capybara driver to be javascript driver into the BrowserIntegrationTest.
Diffstat (limited to 'billing/test/integration')
-rw-r--r-- | billing/test/integration/subscription_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/billing/test/integration/subscription_test.rb b/billing/test/integration/subscription_test.rb index b95bfac..9d150e0 100644 --- a/billing/test/integration/subscription_test.rb +++ b/billing/test/integration/subscription_test.rb @@ -2,9 +2,8 @@ require 'test_helper' require 'fake_braintree' require 'capybara/rails' -class SubscriptionTest < ActionDispatch::IntegrationTest +class SubscriptionTest < BrowserIntegrationTest include Warden::Test::Helpers - include Capybara::DSL include CustomerTestHelper include StubRecordHelper @@ -17,7 +16,6 @@ class SubscriptionTest < ActionDispatch::IntegrationTest payment_method_token: @braintree_customer.credit_cards.first.token, price: '10' @subscription = response.subscription - Capybara.current_driver = Capybara.javascript_driver end teardown do @@ -30,9 +28,9 @@ class SubscriptionTest < ActionDispatch::IntegrationTest @customer.stubs(:subscriptions).returns([@subscription]) @subscription.stubs(:balance).returns 0 visit user_subscriptions_path(@customer.user_id, :locale => nil) + page.save_screenshot('/tmp/subscriptions.png') assert page.has_content?("Subscriptions") assert page.has_content?("Status: Active") - page.save_screenshot('/tmp/subscriptions.png') end # test "user cannot see all subscriptions for other user" do |