To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorimplicit receiver
When should
is called in an example without an explicit receiver, it is
invoked against the subject (explicit or implicit).
- Scenarios
-
- implicit subject
-
- Given
-
a file named "example_spec.rb" with:
describe Array do describe "when first created" do it { should be_empty } end end
- When
-
I run
rspec example_spec.rb
- Then
- the examples should all pass
- explicit subject
-
- Given
-
a file named "example_spec.rb" with:
describe Array do describe "with 3 items" do subject { [1,2,3] } it { should_not be_empty } end end
- When
-
I run
rspec example_spec.rb
- Then
- the examples should all pass
Last published over 7 years ago by .