Sha256: 6935b8f5ef4500519a4e408161da6209c2603bff3258f9e9a7b9e055bc05bd41
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require 'spec_helper' module BoletoBancario module Calculos describe Modulo11FatorDe9a2 do context "when the mod result is 10 (ten)" do subject { Modulo11FatorDe9a2.new('3973') } it { should eq '10' } end context "when the mod result is zero" do subject { Modulo11FatorDe9a2.new('3995') } it { should eq '0' } end context "when the result is one" do subject { Modulo11FatorDe9a2.new('5964') } it { should eq '1' } end context "with a five digit number" do subject { Modulo11FatorDe9a2.new('10949') } it { should eq '5' } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boleto_bancario-0.0.2 | spec/boleto_bancario/calculos/modulo11_fator_de9a2_spec.rb |