RSpec shoulda matchers
Install RSpec shoulda matchers
Used 50 times
F
Fajarullah
Usage
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/Vqqs36"
Template Source
Review the code before running this template on your machine.
gem_group :test do
gem 'shoulda-matchers'
end
Bundler.with_unbundled_env { run "bundle install" }
append_file "spec/rails_helper.rb", <<~RUBY
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
end
end
RUBY