Closed fmlharrison closed 8 years ago
Following on from this, I've just tried the rspec on my orange_tree.rb file and received the below error:
I was looking for the correct strings to use, but I don't see anything in this which suggests what they should be?
Stuarts-MBP:ch13-creating-new-classes stuartcooper$ rspec spec/ch13/orange_tree.rb
/Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/configuration.rb:1435:in load': cannot load such file -- /Users/stuartcooper/Desktop/precourse2/learn_to_program/ch13-creating-new-classes/spec/ch13/orange_tree.rb (LoadError) from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/configuration.rb:1435:in
block in load_spec_files'
from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/configuration.rb:1433:in each' from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/configuration.rb:1433:in
load_spec_files'
from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/runner.rb:100:in setup' from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/runner.rb:86:in
run'
from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/runner.rb:71:in run' from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/runner.rb:45:in
invoke'
from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.5.3/exe/rspec:4:in <top (required)>' from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/bin/rspec:23:in
load'
from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/bin/rspec:23:in <main>' from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in
eval'
from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `
@fmlharrison and @stuartcooper Please move this issue to the pre_course repo, otherwise it doesn't show on slack!
487
I am putting in the correct command on the command line but it won't run the rspec checks. Here is what it is giving me:
Felixs-Air:learn_to_program felixharrison$ rspec ./spec/ch10 /Users/felixharrison/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1226:in
load': /Users/felixharrison/Projects/learn_to_program/ch10-nothing-new/english_number.rb:84: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)`What have I done wrong.
PS sorry for the long code