Run the test suite once with ActiveSupport loaded, once without

ActiveSupport is the source of many problems for us, so let's try to
catch them pre-emptively with testing
This commit is contained in:
Evan Broder 2012-05-07 17:24:44 -07:00
parent f84ee25b03
commit b905b2164c
8 changed files with 58 additions and 1 deletions

View File

@ -3,6 +3,6 @@ rvm:
- 1.8.7
- 1.9.3
gemfile:
- Gemfile
- gemfiles/default-with-activesupport.gemfile
- gemfiles/json.gemfile
- gemfiles/yajl.gemfile

View File

@ -0,0 +1,3 @@
source "https://rubygems.org"
gemspec :path => File.join(File.dirname(__FILE__), "..")
gem "activesupport"

View File

@ -0,0 +1,39 @@
PATH
remote: /home/evan/src/stripe-ruby
specs:
stripe (1.6.3)
multi_json (~> 1.1)
rest-client (~> 1.4)
GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.3)
i18n (~> 0.6)
multi_json (~> 1.0)
i18n (0.6.0)
metaclass (0.0.1)
mime-types (1.18)
mocha (0.11.4)
metaclass (~> 0.0.1)
multi_json (1.3.4)
rake (0.9.2.2)
rest-client (1.6.7)
mime-types (>= 1.16)
shoulda (3.0.1)
shoulda-context (~> 1.0.0)
shoulda-matchers (~> 1.0.0)
shoulda-context (1.0.0)
shoulda-matchers (1.0.0)
test-unit (2.4.8)
PLATFORMS
ruby
DEPENDENCIES
activesupport
mocha
rake
shoulda
stripe!
test-unit

View File

@ -1,3 +1,4 @@
source "https://rubygems.org"
gemspec :path => File.join(File.dirname(__FILE__), "..")
gem "json"
gem "activesupport"

View File

@ -8,6 +8,10 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.3)
i18n (~> 0.6)
multi_json (~> 1.0)
i18n (0.6.0)
json (1.7.0)
metaclass (0.0.1)
mime-types (1.18)
@ -28,6 +32,7 @@ PLATFORMS
ruby
DEPENDENCIES
activesupport
json
mocha
rake

View File

@ -1,3 +1,4 @@
source "https://rubygems.org"
gemspec :path => File.join(File.dirname(__FILE__), "..")
gem "yajl-ruby"
gem "activesupport"

View File

@ -8,6 +8,10 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.3)
i18n (~> 0.6)
multi_json (~> 1.0)
i18n (0.6.0)
metaclass (0.0.1)
mime-types (1.18)
mocha (0.11.3)
@ -28,6 +32,7 @@ PLATFORMS
ruby
DEPENDENCIES
activesupport
mocha
rake
shoulda

View File

@ -0,0 +1,3 @@
require 'active_support'
ActiveSupport.autoloads.each_key {|sym| ActiveSupport.const_get(sym)}
load File.expand_path(File.join(File.dirname(__FILE__), 'test_stripe.rb'))