-
-
Save dchelimsky/339335 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spec::Matchers.define :have_a_machinist_blueprint do | |
match do |model| | |
model.class.respond_to?(:make) | |
end | |
description do | |
"works if there's a valid blueprint" | |
end | |
failure_message_for_should do |model| | |
"expected #{model} to have valid blueprint" | |
end | |
failure_message_for_should_not do |model| | |
"wtf?" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment