From 927d8b8cde930244a16215c57896c8e45f616d0f Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 20 Sep 2009 12:59:32 -0400 Subject: Fix almost all Ruby warnings during spec suite --- spec/spec_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/spec_helper.rb') 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) -- cgit v1.2.3