Sha256: b6176066ef20f48837f8608ce3ae81c5d9838d2d82b4776fb694cc15ea394d79

Contents?: true

Size: 530 Bytes

Versions: 6

Compression:

Stored size: 530 Bytes

Contents

Given /^the following Category Types exist:$/ do |table|
  table.hashes.each do |attributes|
    Factory.create(:category_type, attributes)
  end
end

When /^the following Categories exist for "([^"]*)":$/ do |category_type, table|
  type = Cms::CategoryType.named(category_type).first
  table.hashes.each do |attributes|
    attributes.merge!({:category_type_id => type.id })
    Factory.create(:category, attributes)
  end
end
Then /^an image with id "([^"]*)" should exist$/ do |arg|
  assert Cms::ImageBlock.find(arg.to_i)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browsercms-3.4.2 features/step_definitions/taxonomy_steps.rb
browsercms-3.4.2.rc1 features/step_definitions/taxonomy_steps.rb
browsercms-3.4.1 features/step_definitions/taxonomy_steps.rb
browsercms-3.4.0 features/step_definitions/taxonomy_steps.rb
browsercms-3.4.0.rc2 features/step_definitions/taxonomy_steps.rb
browsercms-3.4.0.rc1 features/step_definitions/taxonomy_steps.rb