1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Fix broken specs on AR 4.2.1

From the 4.2.0 to 4.2.1 the internals of AR have change.
This commit is contained in:
Mauro George 2015-03-26 11:59:25 -03:00
parent 1dd896fcee
commit a9c6a90d93

View file

@ -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" => #<ActiveRecord::Attribute::FromDatabase:0x01234567
attr_reader :name = "id",
attr_reader :type = #<ActiveRecord::Type::Integer:0x01234567
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = nil,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:0x01234567
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
attr_reader :type = #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -192,7 +181,7 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !ExtVerifier.has_rails? }.
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
"name" => #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -267,21 +256,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" => #<ActiveRecord::Attribute::FromDatabase:0x01234567
attr_reader :name = "id",
attr_reader :type = #<ActiveRecord::Type::Integer:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
attr_reader :value = nil,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:0x01234567
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
attr_reader :type = #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -318,7 +296,7 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !ExtVerifier.has_rails? }.
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
"name" => #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -660,21 +638,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" => #<ActiveRecord::Attribute::FromDatabase:0x01234567
attr_reader :name = "id",
attr_reader :type = #<ActiveRecord::Type::Integer:0x01234567
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = nil,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:0x01234567
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
attr_reader :type = #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -712,7 +679,7 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !ExtVerifier.has_rails? }.
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
"name" => #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -783,21 +750,10 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !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" => #<ActiveRecord::Attribute::FromDatabase:0x01234567
attr_reader :name = "id",
attr_reader :type = #<ActiveRecord::Type::Integer:0x01234567
@range = -2147483648...2147483648,
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
>,
attr_reader :value = nil,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:0x01234567
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
attr_reader :type = #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -835,7 +791,7 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !ExtVerifier.has_rails? }.
attr_reader :precision = nil,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
"name" => #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -912,21 +868,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" => #<ActiveRecord::Attribute::FromDatabase:0x01234567
attr_reader :name = "id",
attr_reader :type = #<ActiveRecord::Type::Integer:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
attr_reader :value = nil,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:0x01234567
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
attr_reader :type = #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -963,7 +908,7 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !ExtVerifier.has_rails? }.
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
"name" => #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -1035,21 +980,10 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !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" => #<ActiveRecord::Attribute::FromDatabase:0x01234567
attr_reader :name = "id",
attr_reader :type = #<ActiveRecord::Type::Integer:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
attr_reader :value = nil,
attr_reader :value_before_type_cast = nil
>,
"name" => #<ActiveRecord::Attribute::FromUser:0x01234567
attr_reader :name = "name",
attr_reader :type = #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
attr_reader :type = #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil
@ -1086,7 +1020,7 @@ RSpec.describe "AwesomePrint/ActiveRecord", skip: ->{ !ExtVerifier.has_rails? }.
attr_reader :range = -2147483648...2147483648,
attr_reader :scale = nil
>,
"name" => #<ActiveRecord::ConnectionAdapters::SQLite3String:0x01234567
"name" => #<ActiveRecord::Type::String:0x01234567
attr_reader :limit = nil,
attr_reader :precision = nil,
attr_reader :scale = nil