Skip to content

Commit 74884d9

Browse files
committed
Tweak readme examples
1 parent e898350 commit 74884d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,20 @@ describe User do
7777
subject { User.new }
7878

7979
# Works with shoulda-matchers
80-
it "should have fields and associations" do
80+
it "has fields and associations" do
8181
must have_db_column :name
8282
must belong_to :account
8383
must have_many :widgets
8484
end
8585

8686
# Works with valid_attribute
87-
it "should validate" do
87+
it "validates" do
8888
must have_valid(:email).when("[email protected]", "[email protected]", "[email protected]")
8989
wont have_valid(:email).when(nil, "foo", "foo@bar", "@bar.com")
9090
end
9191

9292
# Works with matchers in other libs
93-
it "should strip attributes" do
93+
it "strips attributes" do
9494
must strip_attribute :name
9595
end
9696
end

0 commit comments

Comments
 (0)