Sha256: 80f8371a6fd42db8399ffe9482392ae895fb0cb32c3447c27d2d9af611af2a06
Contents?: true
Size: 815 Bytes
Versions: 4
Compression:
Stored size: 815 Bytes
Contents
require 'spec_helper' describe SingaporeCharitableDonations::Calculators::CDAC::Year2014Calculator do subject(:result) { described_class.calculate(total_wages) } describe '#calculate' do context 'when the total wage is less than $2,000.00' do let(:total_wages) { 1_000 } let(:expected_contribution) { 0.50 } it { expect(result).to eq(expected_contribution) } end context 'when the total wage is equal to $2,000.00' do let(:total_wages) { 2_000 } let(:expected_contribution) { 1.00 } it { expect(result).to eq(expected_contribution) } end context 'when the total wage is greater than $2,000.00' do let(:total_wages) { 3_000 } let(:expected_contribution) { 1.00 } it { expect(result).to eq(expected_contribution) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems