RSpec Results

14 examples, 0 failures

Finished in 0.334071 seconds

TermMethods when generating term methods for a class
should generate a bimonthly_<name> instance method
should generate an annual_<name> instance method
bimonthly_<name> should return half the monthly version
annual_<name> should return 12 times the monthly version
TermMethods when generating term methods for a class and the value of monthly_<name> is nil
the generated methods should use 0 for the monthly_<name> value
TermMethods when generating term totals for a class
should generate a bimonthly_<name> instance method
should generate a monthly_<name> instance method
should generate an annual_<name> instance method
the term totals methods should sum the collection's <term>_<method> values
TermMethods when generating term totals for a class and a name is not specified
should use 'total' for <name>
TermMethods when generating term balances for a class
should generate a bimonthly_balance instance method
should generate a monthly_balance instance method
should generate an annual_balance instance method
the balance methods should return the difference of <term>_<starting_balance> and <term>_<deduction>