require 'spec_helper'

describe ChargeBookingTemplate do
  context "when new" do
    @template = ChargeBookingTemplate.new

    @template.charge_rate.should == nil
    @template.amount.should == 0.0
    @template.booking_parameters.should == {
                                             "comments"          => nil,
                                             "debit_account_id"  => nil,
                                             "title"             => nil,
                                             "amount"            => BigDecimal(0),
                                             "credit_account_id" => nil,
                                             "include_in_saldo"  =>[],
                                            }
  end
end

require 'spec_helper'

describe ChargeBookingTemplate do
  context "when new" do
    @template = ChargeBookingTemplate.new

    @template.charge_rate.should == nil
    @template.amount.should == 0.0
    @template.booking_parameters.should == {
                                             "comments"          => nil,
                                             "debit_account_id"  => nil,
                                             "title"             => nil,
                                             "amount"            => BigDecimal("0"),
                                             "credit_account_id" => nil,
                                             "include_in_saldo"  =>[],
                                            }
  end
end

Fix spec to use BigDecimal("0") instead of BigDecimal(0).
Fix spec to use BigDecimal("0") instead of BigDecimal(0).
