Sha256: ee2ef0e044f848de9dfb22b6a2a16a025db4807dc91a3eb3eb6ff1cc094da66c

Contents?: true

Size: 685 Bytes

Versions: 7

Compression:

Stored size: 685 Bytes

Contents

FactoryGirl.define do

  factory :video do
    youtube_id '123'
    is_public true
    after(:build) do |v|
      v.user = User.first
      v.site = Site.first
    end
  end

  factory :v1, :class => Video do
    youtube_id '123455'
    is_public true
    after(:build) do |v|
      v.user = User.first
      v.site = Site.first
    end
  end

  factory :v2, :class => Video do
    youtube_id '123456'
    is_public true
    after(:build) do |v|
      v.user = User.first
      v.site = Site.first
    end
  end

  factory :v3, :class => Video do
    youtube_id '123457'
    is_public true
    after(:build) do |v|
      v.user = User.first
      v.site = Site.first
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
ish_lib-0.0.8 spec/factories/videos.rb
ish_lib_engine-0.0.5 spec/factories/videos.rb
ish_lib_engine-0.0.3 spec/factories/videos.rb
ish_lib_engine-0.0.2 spec/factories/videos.rb
ish_lib_manager-0.0.1 test/dummy/spec/factories/videos.rb
ish_lib_engine-0.0.1 spec/factories/videos.rb
ish_lib-0.0.3 spec/factories/videos.rb