erwinjunker / regressor

Generate specs for your rails application the easy way. Regressor generates model and controller specs based on validations, associations, enums, database, routes, callbacks. Use regressor to capture your rails application behaviour.
MIT License
206 stars 33 forks source link

Is Regressor compatible with shoulda-matchers 3.0.x? #21

Closed secondstreetmedia closed 7 years ago

secondstreetmedia commented 9 years ago

I'm getting:

Bundler could not find compatible versions for gem "shoulda-matchers": In Gemfile: regressor (~> 0.6.0) ruby depends on shoulda-matchers (>= 2.7.0, ~> 2.7.0) ruby

shoulda-matchers (~> 3.0.0) ruby

If it is compatible, how should the two gems be specified in my gemfile? If not, any plans for it to be soon?

Thanks, Tim

McRip commented 8 years ago

:+1:

erwinjunker commented 8 years ago

I think it should be no problem to migrate to version 3.0.0 of shoulda matchers. Only thing you need to do when you upgrade to version 3.0.0 is to define your test framework because shoulda no longer detects the test framework automatically in version 3.0.0 (see https://robots.thoughtbot.com/shoulda-matchers-3-0). Also beware of default scopes because in 3.0.0 default scope are not considered anymore. Feel free to submit a pull request. I haven't tested regressor against version 3.0.0

mminski commented 7 years ago

Regressor tested with shoulder matchers (~>3.0.0) and (=> 3.0.0). Works fine.