summaryrefslogtreecommitdiff
path: root/spec/features/profile_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-07-01 17:21:51 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-07-06 22:39:56 -0400
commitcf7c57aaf53036483da35868da84596dcdae2aaf (patch)
treed978fa5013631d5cec87e8ed0858b94d8e36a570 /spec/features/profile_spec.rb
parent4b4351a18c5cc31cc1365b24b8c00360730cd100 (diff)
downloadgitlab-ce-cf7c57aaf53036483da35868da84596dcdae2aaf.tar.gz
Use stub_application_setting in a few more specs
These specs also failed when run by themselves before this change, so we've likely got some kind of cross-test contamination going on.
Diffstat (limited to 'spec/features/profile_spec.rb')
-rw-r--r--spec/features/profile_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/features/profile_spec.rb b/spec/features/profile_spec.rb
index 9fe2e610555..c80253fead8 100644
--- a/spec/features/profile_spec.rb
+++ b/spec/features/profile_spec.rb
@@ -9,8 +9,7 @@ describe 'Profile account page', feature: true do
describe 'when signup is enabled' do
before do
- allow_any_instance_of(ApplicationSetting).
- to receive(:signup_enabled?).and_return(true)
+ stub_application_setting(signup_enabled: true)
visit profile_account_path
end
@@ -24,8 +23,7 @@ describe 'Profile account page', feature: true do
describe 'when signup is disabled' do
before do
- allow_any_instance_of(ApplicationSetting).
- to receive(:signup_enabled?).and_return(false)
+ stub_application_setting(signup_enabled: false)
visit profile_account_path
end