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 Write Our First Tests

Kern Tallett
Kern Tallett
10,012 Points

What is going wrong?

/Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:11: syntax error, unexpected tCONSTANT, expecting keyword_end (SyntaxError) fill_in "Description", with:"This is what i am doing today" ^ /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:11: syntax error, unexpected tCONSTANT, expecting keyword_end fill_in "Description", with:"This is what i am doing today" ^ /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:12: syntax error, unexpected tCONSTANT, expecting keyword_end click_button "Create Todo list" ^ /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:16: syntax error, unexpected tCONSTANT, expecting keyword_end expect(page).to have_content("My todo list")
^ /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:16: unterminated string meets end of file /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:16: syntax error, unexpected end-of-input, expecting keyword_end from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in block in load_spec_files' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:ineach' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in load_spec_files' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:inrun' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:in run' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:inblock in autorun' kerns-mbp:odot Kern$ bin/rspec spec/features/todo_lists/create_spec.rb /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in load': /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:11: syntax error, unexpected tCONSTANT, expecting keyword_end (SyntaxError) fill_in "Description", with:"This is what i am doing today" ^ /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:11: syntax error, unexpected tCONSTANT, expecting keyword_end fill_in "Description", with:"This is what i am doing today" ^ /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:12: syntax error, unexpected tCONSTANT, expecting keyword_end click_button "Create Todo list" ^ /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:16: syntax error, unexpected tCONSTANT, expecting keyword_end expect(page).to have_content("My todo list") ^ /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:16: unterminated string meets end of file /Users/Kern/treehouse/projects/odot/spec/features/todo_lists/create_spec.rb:16: syntax error, unexpected end-of-input, expecting keyword_end from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:inblock in load_spec_files' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:in each' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/configuration.rb:896:inload_spec_files' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/command_line.rb:22:in run' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:80:inrun' from /Users/Kern/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-2.14.7/lib/rspec/core/runner.rb:17:in `block in autorun' kerns-mbp:odot Kern$

And this is my file

require 'spec_helper'

describe "Creating todo lists" do it "redirects to the todo list index page on success" do visit "/todo_lists" click_link "New Todo list" expect(page).to have_content("New todo_list")

    fill_in "Title", with: "My todo list
    fill_in "Description", with:"This is what i am doing today"
    click_button "Create Todo list"



    expect(page).to have_content("My todo list")    
    end

end

2 Answers

Andrew Corcoran
Andrew Corcoran
20,552 Points

Hi Kern,

You are missing an end quote on the following line.

 fill_in "Title", with: "My todo list
Kern Tallett
Kern Tallett
10,012 Points

Ahhh hot dogs

That is a touch embarrassing. Thank you Andrew.