Sha256: 4923a3595dc372fed4977a65022001106f5b3029ee069ee2c72839a41d82bba2

Contents?: true

Size: 301 Bytes

Versions: 7

Compression:

Stored size: 301 Bytes

Contents

Given /^structures tree exists:$/ do |table|
  @tree = table.hashes
  @tree.each do |attrs|
    parent = Structure.joins(:translations).where("structure_translations.title='#{attrs['parent_name']}'").first
    FactoryGirl.create(:structure_page, :title => attrs['title'], :parent => parent)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.2.3 features/step_definitions/structure_steps.rb
ab_admin-0.2.2 features/step_definitions/structure_steps.rb
ab_admin-0.2.1 features/step_definitions/structure_steps.rb
ab_admin-0.2.0 features/step_definitions/structure_steps.rb
ab_admin-0.1.2 features/step_definitions/structure_steps.rb
ab_admin-0.1.1 features/step_definitions/structure_steps.rb
ab_admin-0.1.0 features/step_definitions/structure_steps.rb