Commit 8ea925d2 authored by marcheing's avatar marcheing

Use the file name for rspec and cucumber video upload test

Only with zencoder tests the video would actually need to be a file and
not it's path.
Signed-off-by: Diego de Araújo Martinez Camarinha's avatarDiego Araújo <>
parent c423716b
Pipeline #3598972 passed with stage
in 8 minutes and 35 seconds
......@@ -11,7 +11,7 @@ Given(/^I see my name on the Author field$/) do
Given(/^I have a video to be uploaded$/) do
@video_attributes = attributes_for :video
@video_attributes = attributes_for :video, :cucumber
When(/^I fill the title field with the video's title$/) do
......@@ -10,6 +10,10 @@ FactoryGirl.define do
trait :cucumber do
video "#{Rails.root}/public/cucumber/videos/video.mp4"
trait :zencoder do
Please register or sign in to reply
video { "#{Rails.root}/public/cucumber/videos/video.mp4" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment