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 Creating Methods in Tests

La Kenzi
La Kenzi
14,346 Points

Running the Test

When I run my test I am getting 5 examples, 1 failure back.

The message in the terminal says as follows.

Failures: 
1) Creating todo lists displays an error when todo list has no description 

Failure/Error: expect(page).to have_content("error") expected to find text "error in "Todo list was successfully created. 
Title: Shopping list
Description: Clothes
Edit | Back
# ./spec/features/todo_lists/create_spec.rb:81:in 'block (2 levels in <top (required)>'

I dont know what this means please help!!!

Javier Perez
Javier Perez
3,337 Points

Hi La, it seems as you are expecting the word error in the page but it does not appear. could you show us your spec file?

1 Answer

La Kenzi
La Kenzi
14,346 Points

Sorry for the delayed response the output Jim is getting back from running his test is 5 examples, and 0 failures. So I was confused as to what's wrong with mine. Also, I feel weird asking, but I don't really know how to upload my file to this forum post so you can see it.