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 trialAndreas Daiminger
Courses Plus Student 406 Pointserror 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 for
test(RuntimeError)
from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:54:in
setup'
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:in
instance_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:in
block 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:in
block (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:in
block 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:in
call'
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:in
tsort_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:in
run_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:in
block 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:in
load_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:in
run'
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'
Brandon Gibbs
9,636 Pointsput 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.
- ``` *
Andreas Daiminger
Courses Plus Student 406 PointsAndreas Daiminger
Courses Plus Student 406 Pointssorry. 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 for
test(RuntimeError) from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:54:in
setup' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/aws-sdk-v1-1.61.0/lib/aws/rails.rb:26:inblock in <class:Railtie>' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:30:in
instance_exec' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:30:inrun' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:55:in
block in run_initializers' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:inblock in tsort_each' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in
block (2 levels) in each_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:ineach_strongly_connected_component_from' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in
block in each_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:ineach' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in
call' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:ineach_strongly_connected_component' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in
tsort_each' from /Users/adai183/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:intsort_each' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/initializable.rb:54:in
run_initializers' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/railties-4.1.5/lib/rails/application.rb:300:ininitialize!' from /Users/adai183/Desktop/rekommend/config/environment.rb:5:in
<top (required)>' from /Users/adai183/Desktop/rekommend/spec/spec_helper.rb:3:inrequire' 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:inrequire' 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:inload' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
block 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:ineach' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/configuration.rb:1065:in
load_spec_files' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/command_line.rb:18:inrun' from /Users/adai183/.rvm/gems/ruby-2.2.1/gems/rspec-core-2.99.2/lib/rspec/core/runner.rb:103:in
run' 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 $