This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |