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

Andreas Daiminger
PLUS
Andreas Daiminger
Courses Plus Student 406 Points

error running rspec

I tried to run rspec in another rails project to get more practice at testing but I get this error message when I run rspec:

bin/rspec spec/features/integration_test/widget_spec.rb /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:110:in load_yaml_config': config/aws.yml is missing a section fortest(RuntimeError) from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:54:insetup' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:26:in block in <class:Railtie>' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:30:ininstance_exec' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:30:in run' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:55:inblock in run_initializers' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in block in tsort_each' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:inblock (2 levels) in each_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in each_strongly_connected_component_from' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:inblock in each_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in each' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:incall' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in each_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:intsort_each' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in tsort_each' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:54:inrun_initializers' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/application.rb:300:in initialize!' from /Users/adai183/Desktop/rekommend/config/environment.rb:5:in<top (required)>' from /Users/adai183/Desktop/rekommend/spec/spec_helper.rb:3:in require' from /Users/adai183/Desktop/rekommend/spec/spec_helper.rb:3:in<top (required)>' from /Users/adai183/Desktop/rekommend/spec/features/integration_test/widget_spec.rb:1:in require' from /Users/adai183/Desktop/rekommend/spec/features/integration_test/widget_spec.rb:1:in<top (required)>' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in load' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:inblock in load_spec_files' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in each' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:inload_spec_files' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in run' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:inrun' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun'

Andreas Daiminger
Andreas Daiminger
Courses Plus Student 406 Points

sorry. Here you can see it better.

adai183 (master *) rekommend $ bin/rspec spec/features/integration_test/widget_spec.rb /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:110:in load_yaml_config': config/aws.yml is missing a section fortest(RuntimeError) from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:54:insetup' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:26:in block in <class:Railtie>' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:30:ininstance_exec' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:30:in run' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:55:inblock in run_initializers' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in block in tsort_each' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:inblock (2 levels) in each_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in each_strongly_connected_component_from' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:inblock in each_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in each' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:incall' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in each_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:intsort_each' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in tsort_each' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:54:inrun_initializers' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/application.rb:300:in initialize!' from /Users/adai183/Desktop/rekommend/config/environment.rb:5:in<top (required)>' from /Users/adai183/Desktop/rekommend/spec/spec_helper.rb:3:in require' from /Users/adai183/Desktop/rekommend/spec/spec_helper.rb:3:in<top (required)>' from /Users/adai183/Desktop/rekommend/spec/features/integration_test/widget_spec.rb:1:in require' from /Users/adai183/Desktop/rekommend/spec/features/integration_test/widget_spec.rb:1:in<top (required)>' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in load' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:inblock in load_spec_files' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in each' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:inload_spec_files' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:in run' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:inrun' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:17:in `block in autorun' adai183 (master *) rekommend $

put your code like this ...

  • ``` * Do not include the * * around the tick marks above or in the example below this. Paste your code in here ... then drop down another line after your code and repeat the tick marks...again no * * around them.

This will help others in being able to easily read the code. ``` is just for generic code, as you're using the terminal you don't need a code specifier. If you were to need to put in ruby or html, etc... then you would but that in lower case immediately beside the first tick marks.

I hope this helps you get more help. I wish that I could help with your problem, but I am new to Ruby as well, and frankly with it jumbled up, I know others aren't going to spend the time trying to read it.

  • ``` *