Skip to content

Instantly share code, notes, and snippets.

@pacoguevara
Created January 7, 2016 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pacoguevara/7cc9e2be3f79aac9c84e to your computer and use it in GitHub Desktop.
Save pacoguevara/7cc9e2be3f79aac9c84e to your computer and use it in GitHub Desktop.
describe "class methods" do
describe ".calc_amount" do
context "get the calc_amount of an invoice"
it "returns 0 when the invoice status is 'Cancelado'"
end
it "returns 0 when the invoice amount is nil"
end
it "returns 0 when the invoice has policies from the current company"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment