Sha256: 2d6ad73387edb0e9c3bf40386a8e330f84bf375f129ed71a39b438dd87a9187e

Contents?: true

Size: 397 Bytes

Versions: 32

Compression:

Stored size: 397 Bytes

Contents

require 'spec_helper'

describe PlansController, "successful update", :as => :account_admin do
  before do
    Account.stubs(:find_by_keyword! => account)
    account.stubs(:save_customer_and_subscription! => true)
    put :update, :account_id => account.to_param
  end

  it "notifies observers" do
    should notify_observers("plan_upgraded", :account => account, :request => request)
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
saasy-0.0.2.alpha3 spec/controllers/plans_controller_spec.rb
saasy-0.0.2.alpha2 spec/controllers/plans_controller_spec.rb
saasy-0.0.2.alpha1 spec/controllers/plans_controller_spec.rb
saucy-0.8.4 spec/controllers/plans_controller_spec.rb
saucy-0.8.3 spec/controllers/plans_controller_spec.rb
saasy-0.0.1 spec/controllers/plans_controller_spec.rb
saucy-0.8.2 spec/controllers/plans_controller_spec.rb
saucy-0.8.1 spec/controllers/plans_controller_spec.rb
saucy-0.8.0 spec/controllers/plans_controller_spec.rb
saucy-0.7.3 spec/controllers/plans_controller_spec.rb
saucy-0.7.2 spec/controllers/plans_controller_spec.rb
saucy-0.7.1 spec/controllers/plans_controller_spec.rb
saucy-0.7.0 spec/controllers/plans_controller_spec.rb
saucy-0.6.1 spec/controllers/plans_controller_spec.rb
saucy-0.6.0 spec/controllers/plans_controller_spec.rb
saucy-0.5.5 spec/controllers/plans_controller_spec.rb
saucy-0.5.4 spec/controllers/plans_controller_spec.rb
saucy-0.5.3 spec/controllers/plans_controller_spec.rb
saucy-0.5.2 spec/controllers/plans_controller_spec.rb
saucy-0.5.1 spec/controllers/plans_controller_spec.rb