Sha256: 419dad2403c33eb5537fde17815e8383d5d13162781ef08e141f99ce2605ed31

Contents?: true

Size: 384 Bytes

Versions: 9

Compression:

Stored size: 384 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 "sets the upgraded plan id in the flash" do
    flash[:upgrade_plan_id].should == account.plan_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
saucy-0.3.4.1 spec/controllers/plans_controller_spec.rb
saucy-0.3.4 spec/controllers/plans_controller_spec.rb
saucy-0.3.3 spec/controllers/plans_controller_spec.rb
saucy-0.3.2 spec/controllers/plans_controller_spec.rb
saucy-0.3.1 spec/controllers/plans_controller_spec.rb
saucy-0.3.0 spec/controllers/plans_controller_spec.rb
saucy-0.2.45 spec/controllers/plans_controller_spec.rb
saucy-0.2.44 spec/controllers/plans_controller_spec.rb
saucy-0.2.43 spec/controllers/plans_controller_spec.rb