diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-10 03:19:27 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-10 03:19:27 +0000 |
commit | 9ccbb1356327f658b3012cf2967e6b03ae0ac1ee (patch) | |
tree | 561cf89a713e67c7f391207491dc077a8eb3f620 /railties/test | |
parent | 33e9876c00b57e14d30c0629cb6c9805341639a5 (diff) | |
download | rails-9ccbb1356327f658b3012cf2967e6b03ae0ac1ee.tar.gz rails-9ccbb1356327f658b3012cf2967e6b03ae0ac1ee.tar.bz2 rails-9ccbb1356327f658b3012cf2967e6b03ae0ac1ee.zip |
Allow double quotes around RAILS_GEM_VERSION also. Closes #10443 [James Cox]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8358 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/boot_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/boot_test.rb b/railties/test/boot_test.rb index 375ce52e31..36fae307ca 100644 --- a/railties/test/boot_test.rb +++ b/railties/test/boot_test.rb @@ -128,6 +128,11 @@ class ParseGemVersionTest < Test::Unit::TestCase assert_equal nil, parse(nil) end + def test_should_accept_either_single_or_double_quotes + assert_equal "1.2.3", parse("RAILS_GEM_VERSION = '1.2.3'") + assert_equal "1.2.3", parse('RAILS_GEM_VERSION = "1.2.3"') + end + def test_should_return_nil_if_no_lines_match assert_equal nil, parse('nothing matches on this line\nor on this line') end |