scenario "showing a video called from a track" do visit video_path(video, level_id: level.id) sign_in create(:confirmed_user)
expect(page).to have_selector "video[poster=\"#{video.poster(:original)}\"]" endFactoryGirl.define do factory :video do title "Cadastrando um cliente" poster { Rack::Test::UploadedFile.new("#{::Rails.root}/spec/fixtures/image.png", "image/png") } video { Rack::Test::UploadedFile.new("#{::Rails.root}/spec/fixtures/video.mp4", "video/mp4") } endend
Video Pages
when showing
showing a video called from a track (FAILED - 1)
HTML screenshot: /Users/cezinha/dev/universidade/tmp/capybara/2015-01-06-09-31-30-screenshot-showing-a-video-called-from-a-track.html
Failures:
1) Video Pages when showing showing a video called from a track
Failure/Error: expect(page).to have_selector "video[poster=\"#{video.poster(:original)}\"]"
expected to find css "video[poster=\"/system/videos/posters/000/000/001/original/image.png?1420543889\"]" but there were no matches
# ./spec/features/video_spec.rb:66:in `block (3 levels) in <top (required)>'
<video class="img-responsive"
controls preload autoplay poster="/system/videos/posters/000/000/001/original/image.png?1420543954"
data-level_id=1
<source src=/system/videos/videos/000/000/001/original/video.mp4?1420543954 type="video/mp4" />
/system/videos/posters/000/000/001/original/image.png?1420543953
Hi!
When I inspect the generated HTML I have:<video class="img-responsive"
controls preload autoplay poster="/system/videos/posters/000/000/001/original/image.png?1420543954"
data-level_id=1
<source src=/system/videos/videos/000/000/001/original/video.mp4?1420543954 type="video/mp4" />
When I inspect the video.poster(:original) I have:
/system/videos/posters/000/000/001/original/image.png?1420543953
The worst: sometimes it pass and sometimes not.My impression is that the content of the file is changing while I'm testing and because of this, the fingerprint is different too.Does anyone can help me?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2002b77e-6d7b-416c-b39f-321a777a357b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
César Luiz dos Anjos Júnior
Diretor
(48) 3263-7137
http://www.asseinfo.com.br
"A curiosidade é um dos maiores sinais de vitalidade de um profissional.”
Jim Collins
“Keep learning like a crazy...”
Uncle Bob
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b7f98af2-b8ef-404b-af59-ee34c09f8565%40googlegroups.com.