Skip to content

Commit 8d8d91b

Browse files
committed
Fix tests
1 parent 6d62508 commit 8d8d91b

File tree

10 files changed

+9
-10
lines changed

10 files changed

+9
-10
lines changed

lib/super_diff/active_record/object_inspection/inspectors/active_record_model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def self.applies_to?(value)
1010
protected
1111

1212
def inspection_tree
13-
InspectionTree.new do
13+
SuperDiff::ObjectInspection::InspectionTree.new do
1414
add_text do |object|
1515
"#<#{object.class} "
1616
end

lib/super_diff/active_record/object_inspection/inspectors/active_record_relation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def self.applies_to?(value)
1010
protected
1111

1212
def inspection_tree
13-
InspectionTree.new do
13+
SuperDiff::ObjectInspection::InspectionTree.new do
1414
add_text "#<ActiveRecord::Relation ["
1515

1616
nested do |array|

lib/super_diff/rspec/object_inspection/inspectors.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
autoload :Base, "super_diff/rspec/object_inspection/inspectors/base"
65
autoload(
76
:CollectionContainingExactly,
87
"super_diff/rspec/object_inspection/inspectors/collection_containing_exactly",

lib/super_diff/rspec/object_inspection/inspectors/collection_containing_exactly.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
class CollectionContainingExactly < Base
5+
class CollectionContainingExactly < SuperDiff::ObjectInspection::Inspectors::Base
66
def self.applies_to?(value)
77
SuperDiff::RSpec.a_collection_containing_exactly_something?(value)
88
end

lib/super_diff/rspec/object_inspection/inspectors/collection_including.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
class CollectionIncluding < Base
5+
class CollectionIncluding < SuperDiff::ObjectInspection::Inspectors::Base
66
def self.applies_to?(value)
77
SuperDiff::RSpec.a_collection_including_something?(value)
88
end

lib/super_diff/rspec/object_inspection/inspectors/hash_including.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
class HashIncluding < Base
5+
class HashIncluding < SuperDiff::ObjectInspection::Inspectors::Base
66
def self.applies_to?(value)
77
SuperDiff::RSpec.a_hash_including_something?(value)
88
end

lib/super_diff/rspec/object_inspection/inspectors/instance_of.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
class InstanceOf < Base
5+
class InstanceOf < SuperDiff::ObjectInspection::Inspectors::Base
66
def self.applies_to?(value)
77
SuperDiff::RSpec.an_instance_of_something?(value)
88
end

lib/super_diff/rspec/object_inspection/inspectors/kind_of.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
class KindOf < Base
5+
class KindOf < SuperDiff::ObjectInspection::Inspectors::Base
66
def self.applies_to?(value)
77
SuperDiff::RSpec.a_kind_of_something?(value)
88
end

lib/super_diff/rspec/object_inspection/inspectors/object_having_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
class ObjectHavingAttributes < Base
5+
class ObjectHavingAttributes < SuperDiff::ObjectInspection::Inspectors::Base
66
def self.applies_to?(value)
77
SuperDiff::RSpec.an_object_having_some_attributes?(value)
88
end

lib/super_diff/rspec/object_inspection/inspectors/value_within.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module SuperDiff
22
module RSpec
33
module ObjectInspection
44
module Inspectors
5-
class ValueWithin < Base
5+
class ValueWithin < SuperDiff::ObjectInspection::Inspectors::Base
66
def self.applies_to?(value)
77
SuperDiff::RSpec.a_value_within_something?(value)
88
end

0 commit comments

Comments
 (0)