lib/spec/rails/story_adapter.rb in dchelimsky-rspec-rails-1.1.99.5 vs lib/spec/rails/story_adapter.rb in dchelimsky-rspec-rails-1.1.99.6

- old
+ new

@@ -12,12 +12,12 @@ require 'spec' require 'spec/rails' Test::Unit.run = true -ActionController::Integration::Session.send(:include, Spec::Matchers) -ActionController::Integration::Session.send(:include, Spec::Rails::Matchers) +ActionController::Integration::Session.__send__ :include, Spec::Matchers +ActionController::Integration::Session.__send__ :include, Spec::Rails::Matchers class RailsStory < ActionController::IntegrationTest if defined?(ActiveRecord::Base) self.use_transactional_fixtures = true else @@ -41,11 +41,11 @@ def scenario_started(*args) if defined?(ActiveRecord::Base) if ActiveRecord::Base.connection.respond_to?(:increment_open_transactions) ActiveRecord::Base.connection.increment_open_transactions else - ActiveRecord::Base.send :increment_open_transactions + ActiveRecord::Base.__send__ :increment_open_transactions end end ActiveRecord::Base.connection.begin_db_transaction end @@ -53,10 +53,10 @@ if defined?(ActiveRecord::Base) ActiveRecord::Base.connection.rollback_db_transaction if ActiveRecord::Base.connection.respond_to?(:decrement_open_transactions) ActiveRecord::Base.connection.decrement_open_transactions else - ActiveRecord::Base.send :decrement_open_transactions + ActiveRecord::Base.__send__ :decrement_open_transactions end end end alias :scenario_pending :scenario_succeeded alias :scenario_failed :scenario_succeeded