Skip to content

Commit 6ca5476

Browse files
committed
Remove unnecessary :must_be matcher
It was causing warnings, and we don't need it.
1 parent 3be6efb commit 6ca5476

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

specs/spec_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
require "minitest/autorun"
1212
require "minitest/pride"
1313
require "support/minitest_shared"
14-
require "support/minitest_matchers"
1514
require "support/schema_statement_examples"
1615
require "support/view_examples"
1716

specs/spectacles/view_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
describe Spectacles::View do
44
it "is an abstract class" do
5-
_(Spectacles::View.abstract_class?).must_be true
5+
_(Spectacles::View.abstract_class?).must_equal true
66
end
77
end

specs/support/minitest_matchers.rb

Lines changed: 0 additions & 5 deletions
This file was deleted.

specs/support/view_examples.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
let(:new_product_user) { NewProductUser.duck_lovers.load.first }
1717

1818
it "can have scopes" do
19-
_(new_product_user.username).must_be @john.first_name
19+
_(new_product_user.username).must_equal @john.first_name
2020
end
2121

2222
describe "an instance" do
2323
it "is readonly" do
24-
_(new_product_user.readonly?).must_be true
24+
_(new_product_user.readonly?).must_equal true
2525
end
2626
end
2727
end
@@ -47,11 +47,11 @@ class MaterializedProductUser < Spectacles::MaterializedView
4747
end
4848

4949
it "can have scopes" do
50-
_(MaterializedProductUser.duck_lovers.load.first.username).must_be @john.first_name
50+
_(MaterializedProductUser.duck_lovers.load.first.username).must_equal @john.first_name
5151
end
5252

5353
it "is readonly" do
54-
_(MaterializedProductUser.first.readonly?).must_be true
54+
_(MaterializedProductUser.first.readonly?).must_equal true
5555
end
5656
end
5757
end

0 commit comments

Comments
 (0)