Skip to content

Commit

Permalink
FixtureResolver content is accessible via hash method not data
Browse files Browse the repository at this point in the history
  • Loading branch information
benoittgt committed Feb 23, 2019
1 parent 2761694 commit 8f533e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rspec/rails/example/view_example_group_spec.rb
Expand Up @@ -272,7 +272,7 @@ def _view
result = view_spec.view.view_paths.first

expect(result).to be_instance_of(ActionView::FixtureResolver)
expect(result.data).to eq('some_path/some_template' => 'stubbed-contents')
expect(result.hash).to eq('some_path/some_template' => 'stubbed-contents')
end

it 'caches FixtureResolver instances between example groups' do
Expand Down

0 comments on commit 8f533e0

Please sign in to comment.