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