Sha256: 1f1d3086cbb8ec894b28abeeb83ddba3c9db0fe92452689e226ae30289c7284c

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

Given /^collection "(.*?)" with (\d+) products$/ do |collection, num|
  @collection = FactoryGirl.create(:collection, name: collection)
  num.times { FactoryGirl.create(:product, collection: @collection) }
end

Then /^I should see (\d+) products$/ do |num|
  all('#list tbody tr').count.should == num
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.3.6 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.3.5 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.3.4 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.3.3 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.3.2 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.3.1 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.3.0 features/step_definitions/dsl/parent_resource_steps.rb