KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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
Tags (comma-separated)
Save Edits
Cancel