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 trialLoi Tran
9,053 Pointsbin/rspec spec/features/todo_lists/create_spec.rb
I keep not be able to use spec =(! I think I typoed at a crucial point or something. Is there anywhere I can start rails and/or spec over? Like reinstall? Theres something wrong with my direcotries. When I hit that command this is the error message I see.
Lois-MacBook-Pro:odot Lois$ bin/rspec spec/features/todo_lists/create_spec.rb
/Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require': cannot load such file -- capybara/rspect (LoadError)
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in
block in require'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in load_dependency'
from /Library/Ruby/Gems/2.0.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in
require'
6 Answers
Seth Reece
32,867 PointsHi Loi,
It looks like in spec_helper.rb you have require 'capybara/rspect'
instead of require 'capybara/rspec'
Loi Tran
9,053 PointsThanks for responding seth. I spent over an hour going through the directories and different .rb's to see where I could change the could from 'capybara/rspect' instead of require 'capybara/rspec'. In every one of the files, within those directories, returned by terminal, I couldn't find a case in which it said 'rspect'. Is there anyway to do a clean install of all the directories?
Seth Reece
32,867 PointsIf you're using rspec 2.x you will want to change spec_helper.rb in odot/spec directory. If you're using rspec 3.x it will be in rails_helper.rb in the same directory.
Loi Tran
9,053 Pointsfrom terminal that is, I already tried and everything it does it says things like need permissions, I hit sudo and type in my password and it does overwrite everything, but then i have to do like --commit commands again and what not. lol
Loi Tran
9,053 PointsThanks for your help Seth. I did have that wrong. I'm a newb. lol. https://gist.github.com/PrimeTimeTran/eb6f65a6c8cec3b93fd9 Now I'm getting all types of other problems. I've sort of sliced and diced the directories so I have to now go back through the files and look at whether or not I messed up any other files. I'll look into that. Thanks for your help.
Loi: Ps: Is there a way to rm these directories? lol I don't want to do that, but I feel like I should start fresh. So that I don't have to do this.
Seth Reece
32,867 PointsThose failures look like you haven't set validations in your models If you are wanting to remove files/directories, and are using git, use git rm
. There is documentation here .
Loi Tran
9,053 PointsSeth, Thanks for taking the time to read about my issue, contemplate it, and respond. I'm in the midst of traveling/moving right now so haven't been able to dive into it, but I'll let you know how you've successfully helped me as soon as I can. Thanks!
Loi Tran
9,053 Pointssigh. I tried to start over from scratch by creating a differently todo_lists all together. like from the beginning of this lesson. this is the error I'm receiving now. https://gist.github.com/PrimeTimeTran/9202b7658c0321f11e88 " Failures:
1) Creating todo lists redirects to the todo list index page on success Failure/Error: expect(page).to have_content("New Todo list") expected to find text "New Todo list" in "New Todo List Title Description Back" # ./spec/features/todo_lists/create_spec.rb:7:in `block (2 levels) in <top (required)>' "
Does it have to do with this right here...? " # ./spec/features/todo_lists/create_spec.rb:7:in `block (2 levels) in <top (required)>'"
I feel like that period before the / at the front is fishy. the " # ./spec" period. lol
Thanks for your time Seth. It means a lot. It really does.