Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v2.0.0.rc
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.68 kB

Gotchas

Name conflicts with upstream dependencies

Examples in rspec-rails mix in Rails' assertion modules, which mix in assertion libraries from Minitest (if available) or Test::Unit. This makes it easy to accidentally override a method defined in one of those upstream modules in an example.

For example, if you have a model named Message, and you define a message method (using def message or let(:message) in an example group, it will override Minitest's message method, which is used internally by Minitest, and is also a public API of Minitest. In this case, you would need to use a different method name or work with instance variables instead of methods.

Jump to Line
Something went wrong with that request. Please try again.