Sha256: c95093518963c909eb2075cc6c6036c3cf470aeb7007cbdbe0e71e9c771e8cf4

Contents?: true

Size: 895 Bytes

Versions: 23

Compression:

Stored size: 895 Bytes

Contents

When /^the asset metadata value for "([^\"]*)" should be "([^\"]*)"$/ do |key, value|
  @asset.get_metadata_value(key).should == value
end

When /^I add the metadata "([^\"]*)" with the value "([^\"]*)" to the asset$/ do |key, value|
  @asset.set_metadata(key, value)
end

When /^I delete the metadata key "([^\"]*)"$/ do |key|
  data = @asset.delete_metadata(key)
  data['status'] if data
end

Then /^the asset should not have a metadata value for "([^\"]*)"$/ do |key|
  @asset.get_metadata_value(key).should == nil
end

And /^I get all the metadata for the asset$/ do
  @metadata = @asset.metadata
end

Then /^the metadata list should include "([^\"]*)"$/ do |arg1|
  pending # express the regexp above with the code you wish you had
end

Then /^the metadata for the asset should contain "([^\"]*)"$/ do |keyvalue|
  values = keyvalue.split("=")
  @metadata[values[0]].should == values[1]
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
360_services-0.0.3 features/step_definitions/manage_metadata_steps.rb
360_services-0.0.2 features/step_definitions/manage_metadata_steps.rb
360_services-0.0.1 features/step_definitions/manage_metadata_steps.rb