summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-06-29 15:04:57 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-30 17:47:53 -0400
commit42b643f0573abe2536f8235a8198bcddc076e87b (patch)
tree90ba54777f8bf0602e0502caf9f84e397aa57dd1 /spec/spec_helper.rb
parent366799bbf143220fe34e53e56cac0fccf8ad4f1f (diff)
downloadgitlab-ce-42b643f0573abe2536f8235a8198bcddc076e87b.tar.gz
Fix ApplicationHelper specsrs-fix-application-helper-specs
There were several specs that were failing when run by themselves. - Use the `helper` object, as per RSpec 3 standards - Use `assign` to assign instance variables that helpers expect - Add `StubConfiguration` support module
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index e5fafe4e53f..682a8863bad 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -16,6 +16,7 @@ RSpec.configure do |config|
config.include Devise::TestHelpers, type: :controller
config.include LoginHelpers, type: :feature
config.include LoginHelpers, type: :request
+ config.include StubConfiguration
config.include TestEnv
config.infer_spec_type_from_file_location!