Permalink
Browse files

Use String#exclude? to make sure that Active Support is not loaded when

bare is true.

We need to change this since coffee-rails loads ActionView that loads
core_ext/array/access.
  • Loading branch information...
1 parent a216f91 commit 4b33bbc80374e486467f9a7b76e34e4ab2ce0b50 @rafaelfranca rafaelfranca committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/application/initializers/frameworks_test.rb
@@ -175,7 +175,7 @@ def from_bar_helper
Dir.chdir("#{app_path}/app") do
require "#{app_path}/config/environment"
- assert_raises(NoMethodError) { [1,2,3].forty_two }
+ assert_raises(NoMethodError) { "hello".exclude? "lo" }
end
end

0 comments on commit 4b33bbc

Please sign in to comment.