Generate regression specs based on your ActiveRecord models.
gem 'regressor', git: 'https://github.com/ndea/regressor.git', branch: 'master'
gem 'regressor', '~> 0.1.3'
bundle install
rails g regressor:install
rails generate spec_regression
# config/initializers/regressor.rb
Regressor.configure do |config|
config.regression_path = 'spec/models/regression'
config.excluded_models = ["Foo", "Bar"]
end
regression_path = 'spec/models/regression'
excluded_models = []
- Fork it ( https://github.com/ndea/regressor/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request