Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Deleting Todo Lists

stubs

Hi,

I don't have the same code in my todo_lists_controller_specs.rb. It mentions stubs and so I don't know how to add the "description" param. to make sur that $ bin/rake spec works as you do in the end.

My file starts with this:

def mock_todo_list(stubs={}) (@mock_todo_list ||= mock_model(TodoList).as_null_object).tap do |todo_list| todo_list.stub(stubs) unless stubs.empty? end end

Thanks