diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-06-24 14:25:36 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-24 20:34:51 +0200 |
commit | 4e8ca7bc9a5adac45391177d5b47a33d1da93036 (patch) | |
tree | 190464a8b2090dab7d4f8f3850deafed3e86cd7d | |
parent | 0d2cebe3386e57332dc63501a17246e647cefb7a (diff) | |
download | rails-4e8ca7bc9a5adac45391177d5b47a33d1da93036.tar.gz rails-4e8ca7bc9a5adac45391177d5b47a33d1da93036.tar.bz2 rails-4e8ca7bc9a5adac45391177d5b47a33d1da93036.zip |
adding missing assertion and fixing the test
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r-- | railties/test/application/initializers/frameworks_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index 7c9f67da69..7269a7c5a8 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -28,8 +28,10 @@ module ApplicationTests RUBY require "#{app_path}/config/environment" - ActionController::Base.view_paths.include?(File.expand_path("app/views", app_path)) - ActionMailer::Base.view_paths.include?(File.expand_path("app/views", app_path)) + + expanded_path = File.expand_path("app/views", app_path) + assert_equal ActionController::Base.view_paths[0].to_s, expanded_path + assert_equal ActionMailer::Base.view_paths[0].to_s, expanded_path end test "allows me to configure default url options for ActionMailer" do |