Sha256: fdac3e15fda2a61e4ab18b0c47332aee4e4158f11af2bd9a1596bced321c580d

Contents?: true

Size: 587 Bytes

Versions: 6

Compression:

Stored size: 587 Bytes

Contents

FactoryGirl.define do
  factory :test_file do
    sequence(:name) { |n| "my first test file#{n}" }
    test_file_text  "On http://example.com\n  I should see foo"
    run_tests       true
    
    factory :full_test_file do
      domains     ["example.com"] 
      frequency   3600
      updated_at  "2012-06-06T13:33:20Z"
      created_at  "2012-09-24T12:43:15Z"
      
      factory :compiled_test_file do
        compiled_test_file_text "On http://example.com\n  I should see foo"
      end
      
      factory :tutorial_test_file do
        tutorial_id 1
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
citrulu-0.2.3 spec/factories/test_files.rb
citrulu-0.2.2 spec/factories/test_files.rb
citrulu-0.2.1 spec/factories/test_files.rb
citrulu-0.2.0 spec/factories/test_files.rb
citrulu-0.1.1 spec/factories/test_files.rb
citrulu-0.1.0 spec/factories/test_files.rb