spec/requests/user_spec.rb in iugusdk-1.0.0.alpha.2 vs spec/requests/user_spec.rb in iugusdk-1.0.0.alpha.3
- old
+ new
@@ -42,6 +42,20 @@
it { page.should_not have_content I18n.t("iugu.social_account") }
end
+ context "when user is a guest" do
+ before(:each) do
+ IuguSDK::enable_guest_user = true
+ visit root_path
+ click_link I18n.t("iugu.sign_out")
+ visit new_user_registration_path
+ click_link I18n.t("iugu.try_first")
+ visit profile_settings_path
+ end
+
+ it { page.should have_button I18n.t("iugu.become_user") }
+
+ end
+
end