about summary refs log tree commit diff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-15 21:40:33 -0400
committerEugen <eugen@zeonfederated.com>2017-04-16 03:40:33 +0200
commit3834e1e69b951d5b26768282bf3bd1aae8f45944 (patch)
tree1d795beeef04604fdf73d8c4484990900823a451 /spec/spec_helper.rb
parent95bcbaa4340fe54954c2f15300cbc585d4468c8d (diff)
View spec fix (#1888)
* Add option to disable verify partial doubles

* Add show_landing_strip? helper method

* Use show_landing_strip? helper in accounts and stream entries views

* Fix naming in view specs
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 7038efce1..aa180a387 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -13,6 +13,12 @@ RSpec.configure do |config|
 
   config.mock_with :rspec do |mocks|
     mocks.verify_partial_doubles = true
+
+    config.around(:example, :without_verify_partial_doubles) do |example|
+      mocks.verify_partial_doubles = false
+      example.call
+      mocks.verify_partial_doubles = true
+    end
   end
 
   config.before :each do