Skip to content

Instantly share code, notes, and snippets.

@thegengen
Created March 15, 2012 14:21
Show Gist options
  • Save thegengen/2044432 to your computer and use it in GitHub Desktop.
Save thegengen/2044432 to your computer and use it in GitHub Desktop.
should "fail if an expected parameter is not found" do
class InteractionExpectingParameter < Less::Interaction
expects :title, String
def run
end
end
assert_raise(MissingParameterError) { InteractionExpectingParameter.run }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment