Error while running tests

146 views
Skip to first unread message

aash.d...@gmail.com

unread,
May 14, 2015, 12:46:21 PM5/14/15
to simple-n...@googlegroups.com
I forked simple_navigation in an attempt to confirm the possible issue that I found in the gem when I integrated it in my Rails project. I want to run all the tests first and if possible check for the issue and send a PR afterwards. But when I try to execute bundle exec rake it gives me the following error:

/home/geeky-sh/.rvm/rubies/ruby-1.9.3-p547/bin/ruby -I/home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib:/home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-support-3.2.2/lib /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
[Coveralls] Set up the SimpleCov formatter.
[Coveralls] Using SimpleCov's default settings.
[Coveralls] Outside the CI environment, not sending data.
/home/geeky-sh/Documents/open_source/simple-navigation/lib/simple_navigation.rb:74:in `framework': simple_navigation currently only works for Rails, Sinatra and Padrino apps (RuntimeError)
from /home/geeky-sh/Documents/open_source/simple-navigation/lib/simple_navigation.rb:80:in `load_adapter'
from /home/geeky-sh/Documents/open_source/simple-navigation/lib/simple_navigation.rb:179:in `<top (required)>'
from /home/geeky-sh/Documents/open_source/simple-navigation/lib/simple-navigation.rb:1:in `require'
from /home/geeky-sh/Documents/open_source/simple-navigation/lib/simple-navigation.rb:1:in `<top (required)>'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/bundler-1.7.13/lib/bundler/runtime.rb:76:in `require'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/bundler-1.7.13/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/bundler-1.7.13/lib/bundler/runtime.rb:72:in `each'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/bundler-1.7.13/lib/bundler/runtime.rb:72:in `block in require'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/bundler-1.7.13/lib/bundler/runtime.rb:61:in `each'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/bundler-1.7.13/lib/bundler/runtime.rb:61:in `require'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/bundler-1.7.13/lib/bundler.rb:134:in `require'
from /home/geeky-sh/Documents/open_source/simple-navigation/spec/spec_helper.rb:9:in `<top (required)>'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1181:in `require'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1181:in `block in requires='
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1181:in `each'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/configuration.rb:1181:in `requires='
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/configuration_options.rb:110:in `block in process_options_into'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/configuration_options.rb:109:in `each'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/configuration_options.rb:109:in `process_options_into'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/configuration_options.rb:22:in `configure'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:96:in `setup'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:85:in `run'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:70:in `run'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib/rspec/core/runner.rb:38:in `invoke'
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/exe/rspec:4:in `<main>'
/home/geeky-sh/.rvm/rubies/ruby-1.9.3-p547/bin/ruby -I/home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/lib:/home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-support-3.2.2/lib /home/geeky-sh/.rvm/gems/ruby-1.9.3-p547/gems/rspec-core-3.2.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed

Do I need to do anything else to run the tests. If that is so, can someone point me the right direction. I am sorry if this is a noob question, but I am new to open source contributions. :)

Andi Schacke

unread,
May 14, 2015, 5:02:23 PM5/14/15
to simple-n...@googlegroups.com
the specs can be tested against multiple rails versions and thus you have to set a specific gem file:
BUNDLE_GEMFILE=gemfiles/rails-4-2-stable.gemfile bundle exec rspec

--
You received this message because you are subscribed to the Google Groups "simple-navigation" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-navigat...@googlegroups.com.
To post to this group, send email to simple-n...@googlegroups.com.
Visit this group at http://groups.google.com/group/simple-navigation.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages