Sha256: ee7136849b77f4a59aa46b4a5287ba62be0d38e19b57d53cd9212984ef302498
Contents?: true
Size: 1.05 KB
Versions: 3
Compression:
Stored size: 1.05 KB
Contents
Given(/^a class which includes the Metadata module$/) do class Meta include R2RDF::Metadata end @klass = Meta end Given(/^the source object (\{.+\})$/) do |fields| @original = eval(fields) end Given(/^the rdf dataset (\{.+\})$/) do |fields| @rdf = eval(fields) end Given(/^the chain object (\{.+\})$/) do |fields| (@chain ||= []) << eval(fields) end When(/^I call its provenance method with the source object, the rdf object, and the chain$/) do @response = @klass.new.provenance(@original, @rdf, @chain) end When(/^I call its provenance method with the source object and the rdf object$/) do @response = @klass.new.provenance(@original, @rdf, nil) end When(/^I call its basic method with the hash (\{.+\})$/) do |fields| fields = eval(fields) @response = @klass.new.basic(fields) end When(/^I call its provenance method with the hash (\{.+\})$/) do |fields| fields = eval(fields) @response = @klass.new.provenance(fields) end Then(/^I should receive a metadata string$/) do @response.is_a?(String).should be true puts @response end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bio-publisci-0.0.6 | features/metadata_steps.rb |
bio-publisci-0.0.5 | features/metadata_steps.rb |
bio-publisci-0.0.4 | features/metadata_steps.rb |