makersacademy / learn_to_program

For submitting exercises from the Chris Pine Learn to Program Book
11 stars 400 forks source link

I can't seem to run any of the rspec tests on my CL #487

Closed fmlharrison closed 8 years ago

fmlharrison commented 8 years ago

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:inload': /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

stuartcooper commented 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:inblock 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:inload_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:inrun' 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:ininvoke' 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:inload' 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:ineval' from /Users/stuartcooper/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `

'

anitacanita commented 8 years ago

@fmlharrison and @stuartcooper Please move this issue to the pre_course repo, otherwise it doesn't show on slack!