Sha256: 7e7f583642a623a2024a6638f33af67373ea8ea315d9aee5e828f45f3923080b

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

class Boleto < BoletoBancario::Boleto
  def self.valor_documento_tamanho_maximo
    9_999.99 # Default 99999999.99
  end
end

describe Boleto do
  describe "on validations" do
    it { should have_valid(:valor_documento).when(100.99, 9_999.99) }
    it { should_not have_valid(:valor_documento).when(10_000.00, 99_999.99) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boleto_bancario-0.0.2 spec/inheritance/boleto_spec.rb