Skip to content

Commit 4528077

Browse files
ahorekJonRowe
authored andcommitted
#hash was removed
1 parent 8f533e0 commit 4528077

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/rspec/rails/example/view_example_group_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ def _view
272272
result = view_spec.view.view_paths.first
273273

274274
expect(result).to be_instance_of(ActionView::FixtureResolver)
275-
expect(result.hash).to eq('some_path/some_template' => 'stubbed-contents')
275+
data = result.respond_to?(:data) ? result.data : result.hash
276+
expect(data).to eq('some_path/some_template' => 'stubbed-contents')
276277
end
277278

278279
it 'caches FixtureResolver instances between example groups' do

0 commit comments

Comments
 (0)