From f6cf469820470afab7e743e26788e7b7aee19e15 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Wed, 27 Mar 2013 10:28:22 +0530 Subject: [PATCH] Fix failing tests for edge rails * Edge Rails returns an instance of 'Gem::Version' for 'Rails.version' due to e600384515dc06db2c56ff5be5c18779f7b379a5 * Travis build was failing because of this as 'Rails.version.start_with? '4'' was giving 'undefined method' on 'Gem::Version' instance --- test/generators_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/generators_test.rb b/test/generators_test.rb index 6988ea7e..b1938cee 100644 --- a/test/generators_test.rb +++ b/test/generators_test.rb @@ -1,7 +1,7 @@ require 'test_helper' class Foo < Rails::Application - if Rails.version.start_with? '4' + if Rails.version.to_s.start_with? '4' config.eager_load = false config.secret_key_base = 'abc123' end