diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-09-20 12:59:32 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-09-20 12:59:32 -0400 |
commit | 927d8b8cde930244a16215c57896c8e45f616d0f (patch) | |
tree | 0edfba7f236dddb2a3585a591588c21651dbb8b7 /spec/spec_helper.rb | |
parent | 6690e3c007f65a39797a92462aaabf564bc709b4 (diff) | |
download | rails-927d8b8cde930244a16215c57896c8e45f616d0f.tar.gz rails-927d8b8cde930244a16215c57896c8e45f616d0f.tar.bz2 rails-927d8b8cde930244a16215c57896c8e45f616d0f.zip |
Fix almost all Ruby warnings during spec suite
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index beb634fbd3..7d61fc9120 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -37,9 +37,17 @@ module AdapterGuards end end +module Check + # This is used to eliminate Ruby warnings on some RSpec assertion lines + # See: https://rspec.lighthouseapp.com/projects/5645/tickets/504 + def check(*args) + end +end + Spec::Runner.configure do |config| config.include BeLikeMatcher, HashTheSameAsMatcher, DisambiguateAttributesMatcher config.include AdapterGuards + config.include Check config.mock_with :rr config.before do Arel::Table.engine = Arel::Sql::Engine.new(ActiveRecord::Base) |