Skip to content

Commit

Permalink
reverting flaky date comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed Mar 12, 2010
1 parent 793005e commit e17625c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions features/step_definitions/shopping_steps.rb
Expand Up @@ -24,13 +24,8 @@

order = Order.find(:all, :order => 'created_at DESC').first
order.line_items.size.should == 1
order.created_at.should be_recent

line_item = order.line_items.first
line_item.product.id.should == @product_id
line_item.quantity.should == 1
end

def be_recent
simple_matcher("less than five seconds old") { |given| given > Time.now - 5 }
end

0 comments on commit e17625c

Please sign in to comment.