Skip to content

Commit

Permalink
Change disabled test
Browse files Browse the repository at this point in the history
  • Loading branch information
icy-arctic-fox committed Jul 26, 2024
1 parent 6bb7c5e commit db8a6be
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions spec/spectator/matchers/built_in/be_instance_of_matcher_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -116,26 +116,26 @@ Spectator.describe BeInstanceOfMatcher do
end

context "with .not_to" do
# it "does not match if the object is the exact type" do
# expect do
# expect("foo").not_to be_instance_of(String)
# end.to fail_check <<-MESSAGE
# Expected: "foo"
# not to be a: String
# MESSAGE
# end
it "does not match if the object is the exact type" do
expect do
expect("foo").not_to be_instance_of(String)
end.to fail_check <<-MESSAGE
Expected: "foo"
not to be a: String
MESSAGE
end

it "matches if the object is a sub-type" do
expect do
expect(Derived.new).not_to be_instance_of(Base)
end.to pass_check
end

it "matches if the object is a parent type" do
expect do
expect(Base.new).not_to be_instance_of(Derived)
end.to pass_check
end
# it "matches if the object is a parent type" do
# expect do
# expect(Base.new).not_to be_instance_of(Derived)
# end.to pass_check
# end

it "matches if the object is an unrelated type" do
expect do
Expand Down

0 comments on commit db8a6be

Please sign in to comment.