aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-06-02 15:04:12 -0400
committerSean Griffin <sean@seantheprogrammer.com>2016-06-02 15:04:12 -0400
commit99d8d45e42ef61893171eb2dbf8ff1e6aa9f4c77 (patch)
tree35728244b8649d245feb413188eb3d591864f755
parent818397c9a36ac333ea53234df16878d8eea4fdc1 (diff)
parent14ff8e79060f489f8282ea874e40e60d45ca7801 (diff)
downloadrails-99d8d45e42ef61893171eb2dbf8ff1e6aa9f4c77.tar.gz
rails-99d8d45e42ef61893171eb2dbf8ff1e6aa9f4c77.tar.bz2
rails-99d8d45e42ef61893171eb2dbf8ff1e6aa9f4c77.zip
Merge pull request #25254 from kamipo/fix_debug_helper_test
Fix debug helper test
-rw-r--r--actionview/test/activerecord/debug_helper_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionview/test/activerecord/debug_helper_test.rb b/actionview/test/activerecord/debug_helper_test.rb
index 03cb1d5a91..ed1c08e134 100644
--- a/actionview/test/activerecord/debug_helper_test.rb
+++ b/actionview/test/activerecord/debug_helper_test.rb
@@ -4,7 +4,10 @@ require 'nokogiri'
class DebugHelperTest < ActionView::TestCase
def test_debug
company = Company.new(name: "firebase")
- assert_match "name: firebase", debug(company)
+ output = debug(company)
+ assert_match "name: name", output
+ assert_match "value_before_type_cast: firebase", output
+ assert_match "active_record_yaml_version: 2", output
end
def test_debug_with_marshal_error