Sha256: 2d9b49f8b6c06f8b3aa4ce97b2acd4bb97ec1904e9d3f2f3ab27aa9d44fba616

Contents?: true

Size: 786 Bytes

Versions: 5

Compression:

Stored size: 786 Bytes

Contents

FactoryGirl.define do
  factory :my_dataset, class: PublishMyData::Dataset do
    initialize_with { new(uri, graph_uri) }
    title 'My Dataset'
    description 'A test dataset'
    modified DateTime.parse('20100701')
    ignore do
      uri { PublishMyData::Dataset.uri_from_slug("my-dataset")  }
      graph_uri { PublishMyData::Dataset.metadata_graph_uri("my-dataset") }
    end
  end

  factory :another_dataset, class: PublishMyData::Dataset do
    initialize_with { new(uri, graph_uri) }
    title 'My Other Dataset'
    description 'Another test dataset'
    modified DateTime.parse('20100701')
    ignore do
      uri { PublishMyData::Dataset.uri_from_slug("another-dataset")  }
      graph_uri { PublishMyData::Dataset.metadata_graph_uri("another-dataset") }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
publish_my_data-0.0.15 spec/factories/dataset_factories.rb
publish_my_data-0.0.14 spec/factories/dataset_factories.rb
publish_my_data-0.0.13 spec/factories/dataset_factories.rb
publish_my_data-0.0.12 spec/factories/dataset_factories.rb
publish_my_data-0.0.11 spec/factories/dataset_factories.rb