spec/requests/settings_spec.rb in iugusdk-1.0.0.alpha.1 vs spec/requests/settings_spec.rb in iugusdk-1.0.0.alpha.2
- old
+ new
@@ -4,13 +4,13 @@
context "settings layout" do
before(:each) do
visit '/account/auth/facebook'
end
- context "when allow_create_accounts == false" do
+ context "when enable_multiple_accounts == false" do
before(:each) do
- IuguSDK::allow_create_account = false
+ IuguSDK::enable_multiple_accounts = false
end
context "when user has only 1 account" do
before(:each) do
@user = User.last
@@ -35,12 +35,12 @@
end
end
- context "when allow_create_accounts == true" do
+ context "when enable_multiple_accounts == true" do
before(:each) do
- IuguSDK::allow_create_account = true
+ IuguSDK::enable_multiple_accounts = true
visit settings_path
end
it { page.should have_link I18n.t("iugu.accounts") }