spec/controllers/account_controller_spec.rb in iugusdk-1.0.0.alpha.2 vs spec/controllers/account_controller_spec.rb in iugusdk-1.0.0.alpha.3
- old
+ new
@@ -113,21 +113,21 @@
end
context "generate_new_token" do
login_as_user
before(:each) do
- IuguSDK::enable_account_api_token = true
+ IuguSDK::enable_account_api = true
@account = @user.accounts.last
post :generate_new_token, :account_id => @account.id
end
it { response.should redirect_to account_view_path(@account.id) }
it { flash.now[:notice].should == I18n.t("iugu.notices.new_token_generated") }
- context "when enable_account_api_token == false" do
+ context "when enable_account_api == false" do
before(:each) do
- IuguSDK::enable_account_api_token = false
+ IuguSDK::enable_account_api = false
end
it 'should raise RoutingError' do
lambda {
post :generate_new_token, :account_id => @account.id