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

How do I get bin/autospec after typing in terminal?

When setting up my gems Jason told me to type in terminal "odot nicholaslee$ bin/rails generate rspec:install"

When I did this I only got back,

create .rspec create spec create spec/spec_helper.rb

I am missing bin/autospec. Do I need this?

Also, under my spec folder in spec_helper.rb I was missing require 'rspec/autorun' prior to the process I just mention.

Finally, when I typed in bundler prior to anything above I got the message "IMPORTANT! Nokogiri builds and uses a packaged version of libxml2.

If this is a concern for you and you want to use the system library instead, abort this installation process and reinstall nokogiri as follows: gem install nokogiri -- --use-system-libraries

If you are using Bundler, tell it to use the option:

bundle config build.nokogiri --use-system-libraries
bundle install"

Thank you.

1 Answer

Your bin/autospec and rspec/autorun are generated by the bundler command which did not execute properly. Run the nokogiri commands suggested and then run bundler again to install the autorun executable.