Skip to content

Instantly share code, notes, and snippets.

@moretea
Created October 20, 2011 10:32
Show Gist options
  • Select an option

  • Save moretea/1300852 to your computer and use it in GitHub Desktop.

Select an option

Save moretea/1300852 to your computer and use it in GitHub Desktop.
feature "Image failures" do
background do
@category = Category.make
@product_ok = Product.make(:category => @category)
ensure_test_s3_files!
@product_not_ok = Product.make(:category => @category)
Product.stub(:search).and_return(MockSphinx::ProductStubber.new(Product.all))
end
it "should create a log", :js => true do
visit shop_category_path(@category)
ImageFailure.count.should == 1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment