diff options
author | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-11-05 15:37:01 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@Yehuda-Katz.local> | 2009-11-05 15:38:25 -0800 |
commit | b0dfd1d19b83f1812317345a68c6bc1ad590be53 (patch) | |
tree | 6125679909fa376b3f72aef13e46d60ffdcd9ca9 /railties/test/initializer/check_ruby_version_test.rb | |
parent | 43694269934540de2a73130d7ff47bd1a25ed3e4 (diff) | |
download | rails-b0dfd1d19b83f1812317345a68c6bc1ad590be53.tar.gz rails-b0dfd1d19b83f1812317345a68c6bc1ad590be53.tar.bz2 rails-b0dfd1d19b83f1812317345a68c6bc1ad590be53.zip |
Update Ruby version check to 1.8.7
Diffstat (limited to 'railties/test/initializer/check_ruby_version_test.rb')
-rw-r--r-- | railties/test/initializer/check_ruby_version_test.rb | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/railties/test/initializer/check_ruby_version_test.rb b/railties/test/initializer/check_ruby_version_test.rb index cf956e68fb..97d884e1be 100644 --- a/railties/test/initializer/check_ruby_version_test.rb +++ b/railties/test/initializer/check_ruby_version_test.rb @@ -14,24 +14,32 @@ module InitializerTests assert_rails_does_not_boot "1.8.1" end - test "rails initializes with ruby version 1.8.2" do - assert_rails_boots "1.8.2" + test "rails does not initialize with ruby version 1.8.2" do + assert_rails_does_not_boot "1.8.2" end test "rails does not initialize with ruby version 1.8.3" do assert_rails_does_not_boot "1.8.3" end - test "rails initializes with ruby version 1.8.4" do - assert_rails_boots "1.8.4" + test "rails does not initialize with ruby version 1.8.4" do + assert_rails_does_not_boot "1.8.4" end - test "rails initializes with ruby version 1.8.5" do - assert_rails_boots "1.8.5" + test "rails does not initializes with ruby version 1.8.5" do + assert_rails_does_not_boot "1.8.5" end - test "rails initializes with ruby version 1.8.6" do - assert_rails_boots "1.8.6" + test "rails does not initialize with ruby version 1.8.6" do + assert_rails_does_not_boot "1.8.6" + end + + test "rails initializes with ruby version 1.8.7" do + assert_rails_boots "1.8.7" + end + + test "rails initializes with the current version of Ruby" do + assert_rails_boots end def set_ruby_version(version) @@ -39,8 +47,8 @@ module InitializerTests Object.const_set(:RUBY_VERSION, version.freeze) end - def assert_rails_boots(version) - set_ruby_version(version) + def assert_rails_boots(version = nil) + set_ruby_version(version) if version assert_nothing_raised "It appears that rails does not boot" do Rails::Initializer.run { |c| c.frameworks = [] } Rails.initialize! |