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

Lock dependency to RSpec 2.x #117

Closed
wants to merge 2 commits into from

Conversation

michaelklishin
Copy link

Since the test suite cannot run with RSpec 3.x, it would be great to lock down the dependency and add a Gemfile so that it is easier to test with RSpec 2 while also having RSpec 3 installed.

@gmallard
Copy link

@michaelklishin - Hello. I hope that you still have this on your radar.

I am considering this PR, but have not come to a decision at this point.

I would like to ask several questions.

  1. Are you aware that the original author of bundler (Yehuda Katz) recommends that Ruby gems not check Gemfile.lock into version control (that is recommended only for Ruby Applications)? His thinking can be found here:

http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/

I would ask for your comments on that please.

  1. What actual problem are you trying to solve? What caused you to suggest this change at this point in time? I need details please.

  2. Also, are you aware this this gem reverted a 'bundler/Gemfile' implementation at one point? See: a072575

Thanks, G

@michaelklishin
Copy link
Author

@gmallard I'm happy to remove Gemfile.lock. The problem I'm trying to solve is: I want to run this project's tests and I was unable to do so when RSpec 3 is pulled down. I believe question 3 has the same answer as 1 :)

@michaelklishin
Copy link
Author

Alternatively, and perhaps as a good next step, the test suite should be converted to RSpec 3.x. I'm happy to do that in the near future as our team (RabbitMQ) uses this gem's test suite among other suites to test our STOMP plugin.

@gmallard
Copy link

@michaelklishin - Interestingly another user has broached the subject of Rspec levels. See: #114

I wondered if this PR was related to that subject.

I want some more time to think about this. I will get back to you.

Totally off topic, regarding RabbitMQ:

When I test here I typically use 'rake test' and run the unit tests against live servers. I generally test against:

  • ActiveMQ
  • Apollo
  • RabbitMQ

Your plugin (at lease one version of it) is exercised frequently.

Thanks, G.

@gmallard
Copy link

Ideally I would like future stomp gems to:

  1. Install and the specs run with only Rspec 2.14+ installed.
  2. Install and the specs run with only Rspec 3.x installed.
  3. Install and the specs run with both Rspec 2.14+ and Rspec 3.x installed.

I think that can be done and am going to start down that road here, but if you want to attempt that approach also please go ahead.

I would also appreciate any comments you have (pro/con) regarding that approach. And alternative ideas of course.

Regards, G

@gmallard
Copy link

@michaelklishin Can you please try the gem code:

  1. In my personal clone: https://github.com/gmallard/stomp
  2. HEAD of branch 'rsvertst'

and let me know if it meets your requirements for RSpec 3.

Please provide detailed feedback if this 'fails'.

Thanks, G.

@michaelklishin
Copy link
Author

@gmallard I will give that branch a try next week. I doubt there's any value in supporting RSpec 2.x now or in the future. 3.x has been around since June 2014.

@gmallard
Copy link

@michaelklishin Yes, well., one never knows what happens to gem files after they are out in the wild.

@michaelklishin
Copy link
Author

@gmallard your branch does work for me with RSpec 3.4. I suggest that it is merged into the mainline. Thank you!

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