diff options
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/rails_info_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/rails_info_test.rb b/railties/test/rails_info_test.rb index 568e2a9972..dcf9966c0d 100644 --- a/railties/test/rails_info_test.rb +++ b/railties/test/rails_info_test.rb @@ -80,11 +80,11 @@ EOS end end - def test_middleware_property - assert property_defined?('Middleware') - end - def test_html_includes_middleware + Rails::Info.module_eval do + property 'Middleware', ['Rack::Lock', 'Rack::Static'] + end + html = Rails::Info.to_html assert html.include?('<tr><td class="name">Middleware</td>') properties.value_for('Middleware').each do |value| |