Skip to content

Commit 588ef5c

Browse files
olleolleolleJonRowe
authored andcommitted
[docs] Typos; refer to metadata; note the alias [ci skip] (#47)
1 parent dd8bb70 commit 588ef5c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/rspec/its.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,23 @@ module Its
5555
# its(['admin']) { should eq(:all_permissions) }
5656
# its(['john_doe', :permissions]) { should eq([:read, :write]) }
5757
#
58-
# # You can still access to its regular methods this way:
58+
# # You can still access its regular methods this way:
5959
# its(:keys) { should include(:max_users) }
6060
# its(:count) { should eq(2) }
6161
# end
6262
#
6363
# With an implicit subject, `is_expected` can be used as an alternative
64-
# to `should` (e.g. for one-liner use)
64+
# to `should` (e.g. for one-liner use). An `are_expected` alias is also
65+
# supplied.
6566
#
6667
# @example
6768
#
6869
# describe Array do
6970
# its(:size) { is_expected.to eq(0) }
7071
# end
7172
#
72-
# You can pass more than one arguments on the `its` block to add
73-
# some options to the generated example
73+
# You can pass more than one argument on the `its` block to add
74+
# some metadata to the generated example
7475
#
7576
# @example
7677
#

0 commit comments

Comments
 (0)