Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-support rspec 2 #618

Merged
merged 1 commit into from
Jan 15, 2017
Merged

re-support rspec 2 #618

merged 1 commit into from
Jan 15, 2017

Conversation

skytos
Copy link
Contributor

@skytos skytos commented Jan 11, 2017

Description of Problem

zeus rspec fails for rspec 2 since the invoke method does not exist on RSpec::Core::Runner until rspec 3

System details

  • uname -a: Darwin I.local 15.6.0 Darwin Kernel Version 15.6.0: Wed Nov 2 20:30:56 PDT 2016; root:xnu-3248.60.11.1.2~2/RELEASE_X86_64 x86_64

  • ruby -v:
    ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin14.0]

Steps to Reproduce

  1. zeus start in a rails project with rails 2

  2. zeus rspec

Observed Behavior

/usr/local/var/rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/zeus-0.15.12/lib/zeus/rails.rb:207:in `test': undefined method `invoke' for RSpec::Core::Runner:Class (NoMethodError)

Expected Behavior

  • tests run

@sideshowcoder
Copy link
Collaborator

Makes a lot of sense to me. Not that well versed in RSpec but I'm wondering if there is a way to test this so we can avoid regression? Maybe have 2 Gemfiles one with RSpec 2 and one with RSpec 3 and run both on Travis?

Thanks for the work! I'm happy to merge this, would be even happier if we had a test 👍

@skytos
Copy link
Contributor Author

skytos commented Jan 12, 2017 via email

@sideshowcoder
Copy link
Collaborator

Sounds reasonable, happy to try to help let me know how it goes.

@sideshowcoder
Copy link
Collaborator

fixes #588

@skytos
Copy link
Contributor Author

skytos commented Jan 13, 2017

I'm not coming up with any great ways to test this other than having a couple dummy apps that require zeus and different versions of rspec. I don't see how to integrate that with the current test setup since the tests are rspec tests themselves and they don't work with rspec2 syntax. I could add a new make task that test-rubygem depends upon but it seems pretty heavy weight. @sideshowcoder does that seem like a path worth pursuing or did you have another idea?

@sideshowcoder
Copy link
Collaborator

Well I think if it is to heavy weight I'm fine with just leaving it as is to be honest. :) Thanks for taking a looks so!

@sideshowcoder sideshowcoder merged commit d258e81 into burke:master Jan 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants