Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prefer eq over == in RSpec

  • Loading branch information...
commit cba816db6066da2c4965f01a3aef7f02cde4b438 1 parent 38d1c0b
@jferris jferris authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  README.md
  2. +1 −0  rspec-sample.rb
View
1  README.md
@@ -142,6 +142,7 @@ Testing
* Order factory attributes: implicit attributes, explicit attributes,
child factory definitions. Each section's attributes are alphabetical.
* Order factory definitions alphabetically by factory name.
+* Prefer `eq` to `==` in RSpec.
* Separate setup, exercise, verification, and teardown phases with newlines.
* Use an `it` example for each execution path through the method.
* Use one factories.rb file per project.
View
1  rspec-sample.rb
@@ -1,5 +1,6 @@
describe SomeClass, '#some_method' do
it 'does something' do
+ something.should eq 'something'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.