Sha256: f8686f552f9ad8d4115bfc3048892065cfa6fa12b0388f871699954867418883
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "ActsAsShoppingCart" do before(:each) do @cart = SomeCart.create end it "has many items" do @cart.should respond_to(:cart_items) something = SomeClass.create @cart.should respond_to(:remove) # Test to ensure that any other class doesn't have the methods something.should_not respond_to(:remove) end end
Version data entries
3 entries across 3 versions & 1 rubygems