Skip to content

Instantly share code, notes, and snippets.

@paulspencerwilliams
Created October 24, 2014 15:04
Show Gist options
  • Save paulspencerwilliams/131837ec22459287c749 to your computer and use it in GitHub Desktop.
Save paulspencerwilliams/131837ec22459287c749 to your computer and use it in GitHub Desktop.
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