Skip to content

Instantly share code, notes, and snippets.

View jesuslerma's full-sized avatar

jesuslerma

  • globalgig
  • Monterrey Mexico
View GitHub Profile
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