test/unit/utils_tests.rb in assert-2.6.0 vs test/unit/utils_tests.rb in assert-2.7.0
- old
+ new
@@ -45,19 +45,19 @@
class ShowForDiffTests < ShowTests
desc "`show_for_diff`"
setup do
@w_newlines = { :string => "herp derp, derp herp\nherpderpedia" }
- @w_obj_id = Struct.new(:a, :b).new('aye', 'bee')
+ @w_obj_id = Class.new.new
end
should "call show, escaping newlines" do
exp_out = "{:string=>\"herp derp, derp herp\nherpderpedia\"}"
assert_equal exp_out, subject.show_for_diff(@w_newlines, Factory.modes_off_config)
end
should "make any obj ids generic" do
- exp_out = "#<struct #<Class:0xXXXXXX> a=\"aye\", b=\"bee\">"
+ exp_out = "#<#<Class:0xXXXXXX>:0xXXXXXX>"
assert_equal exp_out, subject.show_for_diff(@w_obj_id, Factory.modes_off_config)
end
end