Skip to content

Instantly share code, notes, and snippets.

@terrbear
Created March 20, 2010 19:22
Show Gist options
  • Save terrbear/338843 to your computer and use it in GitHub Desktop.
Save terrbear/338843 to your computer and use it in GitHub Desktop.
module MachinistMacro
class MachinistMatcher
def matches?(item)
item.class.make
return true
rescue
return false
end
def description
"works if there's a valid blueprint"
end
def failure_message_for_should
"expected #{@subject} to have valid blueprint"
end
def failure_message_for_should_not
"wtf?"
end
end
def work_with_machinist
MachinistMatcher.new
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment