From a9c6a90d93a1a8fcd28aad70673ec18ec13fa08c Mon Sep 17 00:00:00 2001 From: Mauro George Date: Thu, 26 Mar 2015 11:59:25 -0300 Subject: [PATCH] Fix broken specs on AR 4.2.1 From the 4.2.0 to 4.2.1 the internals of AR have change. --- spec/ext/active_record_spec.rb | 90 +++++----------------------------- 1 file changed, 12 insertions(+), 78 deletions(-) diff --git a/spec/ext/active_record_spec.rb b/spec/ext/active_record_spec.rb index 860a5db..ed2b611 100644 --- a/spec/ext/active_record_spec.rb +++ b/spec/ext/active_record_spec.rb @@ -140,21 +140,10 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !ExtVerifier.has_rails? }. >, attr_reader :value = 1992-10-10 12:30:00 UTC, attr_reader :value_before_type_cast = "1992-10-10 12:30:00" - >, - "id" => #, - attr_reader :value = nil, - attr_reader :value_before_type_cast = nil >, "name" => #{ !ExtVerifier.has_rails? }. attr_reader :precision = nil, attr_reader :scale = nil >, - "name" => # #{ !ExtVerifier.has_rails? }. >, attr_reader :value = 1992-10-10 12:30:00 UTC, attr_reader :value_before_type_cast = "1992-10-10 12:30:00" - >, - "id" => #, - attr_reader :value = nil, - attr_reader :value_before_type_cast = nil >, "name" => #{ !ExtVerifier.has_rails? }. attr_reader :range = -2147483648...2147483648, attr_reader :scale = nil >, - "name" => # #{ !ExtVerifier.has_rails? }. >, attr_reader :value = 1992-10-10 12:30:00 UTC, attr_reader :value_before_type_cast = "1992-10-10 12:30:00" - >, - "id" => #, - attr_reader :value = nil, - attr_reader :value_before_type_cast = nil >, "name" => #{ !ExtVerifier.has_rails? }. attr_reader :precision = nil, attr_reader :scale = nil >, - "name" => # #{ !ExtVerifier.has_rails? }. >, attr_reader :value = 2003-05-26 14:15:00 UTC, attr_reader :value_before_type_cast = "2003-05-26 14:15:00" - >, - "id" => #, - attr_reader :value = nil, - attr_reader :value_before_type_cast = nil >, "name" => #{ !ExtVerifier.has_rails? }. attr_reader :precision = nil, attr_reader :scale = nil >, - "name" => # #{ !ExtVerifier.has_rails? }. >, attr_reader :value = 1992-10-10 12:30:00 UTC, attr_reader :value_before_type_cast = "1992-10-10 12:30:00" - >, - "id" => #, - attr_reader :value = nil, - attr_reader :value_before_type_cast = nil >, "name" => #{ !ExtVerifier.has_rails? }. attr_reader :range = -2147483648...2147483648, attr_reader :scale = nil >, - "name" => # #{ !ExtVerifier.has_rails? }. >, attr_reader :value = 2003-05-26 14:15:00 UTC, attr_reader :value_before_type_cast = "2003-05-26 14:15:00" - >, - "id" => #, - attr_reader :value = nil, - attr_reader :value_before_type_cast = nil >, "name" => #{ !ExtVerifier.has_rails? }. attr_reader :range = -2147483648...2147483648, attr_reader :scale = nil >, - "name" => # #