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 collaboratorattribute of subject
In order to get more meaningful failure messages
As a spec author
I want RSpec to tell me what attribute a matcher applies
to when using the its(:attribute) technique
- Scenarios
-
- eq matcher fails
-
- Given
-
a file named "example_spec.rb" with:
describe "an array" do subject { [] } its(:size) { should eq(1) } # intentionally fail end
- When
- I run "rspec example_spec.rb -fdoc"
- Then
- the output should contain "Failure/Error: its(:size) { should eq(1) }"
- And
- the output should contain "expected 1"
Last published almost 7 years ago by dchelimsky.