Skip to content

Commit

Permalink
Fix image helper spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevallano committed May 19, 2020
1 parent d335243 commit bd76c81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/helpers/movies_helper_spec.rb
Expand Up @@ -14,7 +14,11 @@

it 'returns an image tag if the movie has a poster path' do
allow(movie).to receive(:poster_path).and_return('tester')
expect(helper.image_for(movie)).to eq(image_tag("http://image.tmdb.org/t/p/w185#{movie.poster_path}"))
expect(helper.image_for(movie)).to eq(
image_tag("http://image.tmdb.org/t/p/w185#{movie.poster_path}",
title: movie.title,
alt: movie.title)
)
end
end

Expand Down

0 comments on commit bd76c81

Please sign in to comment.