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 8f533e0 commit 4528077Copy full SHA for 4528077
spec/rspec/rails/example/view_example_group_spec.rb
@@ -272,7 +272,8 @@ def _view
272
result = view_spec.view.view_paths.first
273
274
expect(result).to be_instance_of(ActionView::FixtureResolver)
275
- expect(result.hash).to eq('some_path/some_template' => 'stubbed-contents')
+ data = result.respond_to?(:data) ? result.data : result.hash
276
+ expect(data).to eq('some_path/some_template' => 'stubbed-contents')
277
end
278
279
it 'caches FixtureResolver instances between example groups' do
0 commit comments