sandro/specjour

Not playing well with rspec-core 2.11.1

rubystar opened this issue · 3 comments

I couldn't make it work with rspec-core 2.11.1

I am using specjour (0.7.0)

here is the error i am getting

/usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/loader.rb:108:in block in filtered_examples': undefined methodparent_groups' for RSpec::Core::ExampleGroup::Nested_1::Nested_1:Class (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/loader.rb:106:in map' from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/loader.rb:106:infiltered_examples'
from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/loader.rb:96:in rspec_examples' from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/loader.rb:90:inregister_tests_with_printer'
from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/loader.rb:86:in load_app' from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/loader.rb:22:instart'
from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/cli.rb:57:in load' from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/thor-0.16.0/lib/thor/task.rb:27:inrun'
from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/thor-0.16.0/lib/thor/invocation.rb:120:in invoke_task' from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/thor-0.16.0/lib/thor.rb:275:indispatch'
from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/thor-0.16.0/lib/thor/base.rb:425:in start' from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/lib/specjour/cli.rb:24:instart'
from /usr/local/rvm/gems/ruby-1.9.3-p194@redzone/gems/specjour-0.7.0/bin/specjour:5:in `

'

Sorry about that. I think the latest version of specjour only works with the latest (rspec 2.12.0) rspec. You can try installing an earlier version of specjour (gem install specjour -v 0.6.6) or upgrade rspec.

Yeah, that solves the issue :). I upgraded rspec-rails to 2.12.0. Thank you!

BTW few more issues i am facing though,

  1. Having some issues with shared_examples, the controller specs are not being run(some of them are failing)

  2. And when i tried to run the model specs, they are taking too long, too long in fact(they keep running even after 15min, while the same took 3m7.509s with rspec. The machine is not responsive at all, when the specjour is running. I have a Processor with 2 cores and 3gb memory.

Frankly, i am not sure where is it going wrong :(

In case you encountered any of these issues before, Please let me now possible causes of these.

Thanks again!

The wiki has a note about shared examples: https://github.com/sandro/specjour/wiki/Gotchas

Not sure why your model tests are taking so long. Do you have a before(:all) callback? If so, then that's likely running before each test (I really need to fix that). If not, try isolating just one test via specjour spec/models/user_spec.rb. You can also try running the single example with only one worker: specjour -w 1 spec/models/user_spec.rb

If none of the above helps, try forking the example app with your problem.