Skip to content

Instantly share code, notes, and snippets.

@jesuslerma
Forked from pacoguevara/Factura_spec.rb
Last active January 7, 2016 17:35
Show Gist options
  • Save jesuslerma/725c22ef8fc9748ee018 to your computer and use it in GitHub Desktop.
Save jesuslerma/725c22ef8fc9748ee018 to your computer and use it in GitHub Desktop.
describe "class methods" do
describe ".calc_amount" do
it "returns 0 when the invoice amount is nil"
context "when the invoice status is 'Cancelado'" do
it "returns invoice total when the invoice has polizas for the company"
it "return 0.0 when the invoice doesnt has not polizas for the company"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment