samedi 28 novembre 2015

Cant figure out why rspec is showing these errors. Please help me to configure it correctly

I am new to Rspec. Following Testing with Rspec(codeschool's course). I am getting the errors which are unexpected. (1st error is expected, as there is no Zombie function yet).

Am i doing something wrong? how to fix this configuration errors?

//("Error expected")

Vamsidhars-MacBook-Air:RAILS_APP_SAMPLE Vamsidhar$ rspec spec/lib/zombie_spec.rb /Users/Vamsidhar/Desktop/RAILS_APP_SAMPLE/spec/lib/zombie_spec.rb:2:in `': uninitialized constant Zombie (NameError)

//("The next part of error , unexpected ")

from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1361:in load' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1361:inblock in load_spec_files' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1359:in each' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/lib/rspec/core/configuration.rb:1359:inload_spec_files' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:102:in setup' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:88:inrun' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:73:in run' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/lib/rspec/core/runner.rb:41:ininvoke' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.4.1/exe/rspec:4:in <top (required)>' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/bin/rspec:23:inload' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/bin/rspec:23:in <main>' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:ineval' from /Users/Vamsidhar/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `'

Aucun commentaire:

Enregistrer un commentaire