Skip to content

Commit

Permalink
[core] Correct test breakages in requests/products_spec.rb caused by …
Browse files Browse the repository at this point in the history
…@18f3923
  • Loading branch information
radar committed May 29, 2012
1 parent fa018ad commit dbf4f63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/spec/requests/products_spec.rb
Expand Up @@ -10,7 +10,7 @@
it "should be able to show the shopping cart after adding a product to it" do
click_link "Ruby on Rails Ringer T-Shirt"

page.should have_content("$17.99")
page.should have_content("$19.99")

click_button 'add-to-cart-button'
page.should have_content("Shopping Cart")
Expand Down Expand Up @@ -100,7 +100,7 @@
check "Price_Range_$15.00_-_$18.00"
within(:css, '#sidebar_products_search') { click_button "Search" }

page.all('ul.product-listing li').size.should == 3
page.all('ul.product-listing li').size.should == 2
tmp = page.all('ul.product-listing li a').map(&:text).flatten.compact
tmp.delete("")
tmp.sort!.should == ["Ruby on Rails Ringer T-Shirt", "Ruby on Rails Stein", "Ruby on Rails Tote"]
Expand All @@ -112,7 +112,7 @@
check "Price_Range_$15.00_-_$18.00"
within(:css, '#sidebar_products_search') { click_button "Search" }

page.all('ul.product-listing li').size.should == 2
page.all('ul.product-listing li').size.should == 4
tmp = page.all('ul.product-listing li a').map(&:text).flatten.compact
tmp.delete("")
tmp.sort!.should == ["Ruby on Rails Ringer T-Shirt", "Ruby on Rails Tote"]
Expand Down

0 comments on commit dbf4f63

Please sign in to comment.