Supporting new active_support setup for Rails 3
This commit is contained in:
parent
5dfd18cd71
commit
2139119845
|
@ -5,7 +5,7 @@ gem 'couchrest'
|
||||||
|
|
||||||
require 'couchrest'
|
require 'couchrest'
|
||||||
|
|
||||||
require 'activesupport'
|
require 'active_support/core_ext'
|
||||||
require 'mime/types'
|
require 'mime/types'
|
||||||
require "enumerator"
|
require "enumerator"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ require File.expand_path('../../spec_helper', __FILE__)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'rubygems' unless ENV['SKIP_RUBYGEMS']
|
require 'rubygems' unless ENV['SKIP_RUBYGEMS']
|
||||||
require 'activesupport'
|
require 'active_support/json'
|
||||||
ActiveSupport::JSON.backend = :JSONGem
|
ActiveSupport::JSON.backend = :JSONGem
|
||||||
|
|
||||||
class PlainParent
|
class PlainParent
|
||||||
|
@ -36,5 +36,5 @@ begin
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
puts "This spec requires 'active_support' to be loaded"
|
puts "This spec requires 'active_support/json' to be loaded"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue