Skip to content

Instantly share code, notes, and snippets.

@didlix
Created September 6, 2013 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save didlix/6462582 to your computer and use it in GitHub Desktop.
Save didlix/6462582 to your computer and use it in GitHub Desktop.
it 'vomits (raises an InvalidOutline) at a yaml_hash with missing paramaters' do
missing_outline_is_a_big_no_no_hash =
{ 'start_date': 'Yesterday',
'body': "You can't begin yesterday",
'title': 'The impossible outline'
# OMG NO OUTLINE!!!
}
expect { Outline.new(missing_outline_is_a_big_no_no_hash) }.to raise_error(Outline::InvalidOutline)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment