Sha256: 2167137e33130916623e7bc14d13398568098444e1e5ab37a262359540909fc1

Contents?: true

Size: 714 Bytes

Versions: 8

Compression:

Stored size: 714 Bytes

Contents

require "spec_helper"

describe Emites::Entities::NfseStatusTransition do
  let(:attributes) do
    {
      id:   1,
      token_description: "MY_T0KEN",
      from_status:       "created",
      to_status:         "scheduled",
      date:              "DateTime",
      emitter:           Emites::Entities::Emitter.new(id: 1, name: "MyFinance"),
      rps:               Emites::Entities::Rps.new(id: 6, number: 1950875687),
      account:           Emites::Entities::Account.new(id: 1, name: "MyFinance Account")
    }
  end

  subject { described_class.new(attributes) }

  it_behaves_like "entity_attributes", [
    :id, :token_description, :from_status,
    :to_status, :date, :emitter, :rps, :account
  ]
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
emites-client-0.1.4 spec/emites/entities/nfse_status_transition_spec.rb
emites-client-0.1.3 spec/emites/entities/nfse_status_transition_spec.rb
emites-client-0.1.2 spec/emites/entities/nfse_status_transition_spec.rb
emites-client-0.1.1 spec/emites/entities/nfse_status_transition_spec.rb
emites-client-0.1.0 spec/emites/entities/nfse_status_transition_spec.rb
emites-client-0.0.4 spec/emites/entities/nfse_status_transition_spec.rb
emites-client-0.0.3 spec/emites/entities/nfse_status_transition_spec.rb
emites-client-0.0.2 spec/emites/entities/nfse_status_transition_spec.rb