diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:12:36 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-21 19:12:36 -0600 |
commit | 1edd911e4292a98c309391a119467e55a509d7b0 (patch) | |
tree | 693e53c2b3120fbb31f91ba857bfdbc14c677a23 /spec | |
parent | deaf74104dfeecec4704a4af82837bbcb737c71d (diff) |
Añade shoulda matchers
Diffstat (limited to 'spec')
-rw-r--r-- | spec/rails_helper.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index a53bdba..0624d3e 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -3,7 +3,7 @@ require 'spec_helper' ENV['RAILS_ENV'] ||= 'test' require_relative '../config/environment' # Prevent database truncation if the environment is production -abort("The Rails environment is running in production mode!") if Rails.env.production? +abort('The Rails environment is running in production mode!') if Rails.env.production? require 'rspec/rails' # Add additional requires below this line. Rails is not loaded until this point! @@ -61,3 +61,10 @@ RSpec.configure do |config| # arbitrary gems may also be filtered via: # config.filter_gems_from_backtrace("gem name") end + +Shoulda::Matchers.configure do |config| + config.integrate do |with| + with.test_framework :rspec + with.library :rails + end +end |