Sha256: 07ca18181468d5820974381c6fe4b8040122b255ac5fdccade34930a4339f503

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

require 'spec_helper'

module BoletoBancario
  module Calculos
    describe Modulo11 do
      subject { Modulo11.new(1) }

      describe "#fatores" do
        before { Modulo11.any_instance.stub(:calculate).and_return(1) }

        it { expect { subject.fatores }.to raise_error(NotImplementedError, "Not implemented #fatores in subclass.") }
      end

      describe "#calculate" do
        it { expect { Modulo11.new(1) }.to raise_error(NotImplementedError, "Not implemented #calculate in subclass.") }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
boleto_bancario-0.0.2 spec/boleto_bancario/calculos/modulo11_spec.rb
conectiva-boleto_bancario-0.0.2.beta spec/boleto_bancario/calculos/modulo11_spec.rb
boleto_bancario-0.0.1.beta spec/boleto_bancario/calculos/modulo11_spec.rb