Sha256: a537e7d44327ac5fde348bdebd26fcb653dcffb7c25e5c25ba0f603c0a37d113

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 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

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.2.3 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.2.2 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.2.1 features/step_definitions/dsl/parent_resource_steps.rb
ab_admin-0.2.0 features/step_definitions/dsl/parent_resource_steps.rb