We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47893b8 commit 07afbbcCopy full SHA for 07afbbc
spec/rspec/rails/example/view_example_group_spec.rb
@@ -235,16 +235,15 @@ def _view; end # Stub method
235
236
it 'is accessible to hooks' do
237
with_isolated_config do
238
- view = double("view")
239
run_count = 0
240
RSpec.configuration.before(:each, :type => :view) do
241
- allow(view).to receive(:a_stubbed_helper) { :value }
+ allow(view).to receive(:render) { :value }
242
run_count += 1
243
end
244
group = RSpec::Core::ExampleGroup.describe 'a view', :type => :view do
245
specify { true }
246
247
- group.run NullObject.new
+ group.run
248
expect(run_count).to eq 1
249
250
0 commit comments