What would the pros and cons be of using an rspec double over a struct? For example
before :each do location = double "locatoin" location.stub(:id => 1) end
vs
before :each do location = Struct.new("locatoin", :id) location.new.id = 1 end