Created
October 24, 2014 15:04
-
-
Save paulspencerwilliams/131837ec22459287c749 to your computer and use it in GitHub Desktop.
This file contains 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
module Matchers | |
class BeACreatedFor | |
def initialize(expected_model) | |
@expected_model = expected_model | |
end | |
def matches?(actual_response) | |
false | |
end | |
def failure_message | |
"WAT" | |
end | |
def be_a_created_for(expected_model) | |
BeACreatedFor.new(expected_model) | |
end | |
end | |
alias_method :be_a_created_for | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment