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
This commit is contained in:
parent
95bcbaa434
commit
3834e1e69b
7 changed files with 106 additions and 68 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue