Sha256: d15e47233165f91b8ea6a3bf621687b034928952e52f08f9283a909963e8d462

Contents?: true

Size: 425 Bytes

Versions: 53

Compression:

Stored size: 425 Bytes

Contents

require 'test_helper'

class DiscoApp::SubscriptionTest < ActiveSupport::TestCase

  def setup
    @shop = disco_app_shops(:widget_store)
  end

  def teardown
    @shop = nil
  end

  test 'changing the amount on a subscription cancels its charge' do
    assert @shop.current_subscription.active_charge?
    @shop.current_subscription.update(amount: 1138)
    assert_not @shop.current_subscription.active_charge?
  end

end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release test/models/disco_app/subscription_test.rb
disco_app-0.9.0 test/models/disco_app/subscription_test.rb
disco_app-0.9.1 test/models/disco_app/subscription_test.rb
disco_app-0.9.2 test/models/disco_app/subscription_test.rb
disco_app-0.9.3 test/models/disco_app/subscription_test.rb
disco_app-0.9.4 test/models/disco_app/subscription_test.rb
disco_app-0.9.5 test/models/disco_app/subscription_test.rb
disco_app-0.9.6 test/models/disco_app/subscription_test.rb
disco_app-0.9.7 test/models/disco_app/subscription_test.rb
disco_app-0.9.8 test/models/disco_app/subscription_test.rb
disco_app-0.9.9 test/models/disco_app/subscription_test.rb
disco_app-0.9.10 test/models/disco_app/subscription_test.rb
disco_app-0.9.11 test/models/disco_app/subscription_test.rb
disco_app-0.10.0 test/models/disco_app/subscription_test.rb
disco_app-0.10.1 test/models/disco_app/subscription_test.rb
disco_app-0.10.2 test/models/disco_app/subscription_test.rb
disco_app-0.10.3 test/models/disco_app/subscription_test.rb
disco_app-0.10.4 test/models/disco_app/subscription_test.rb
disco_app-0.10.5 test/models/disco_app/subscription_test.rb
disco_app-0.11.0 test/models/disco_app/subscription_test.rb