Sha256: 45de8ed8703c49fd932bdd0033f9310add96e671251b7d7ff1d3beb5caa8692d

Contents?: true

Size: 602 Bytes

Versions: 3

Compression:

Stored size: 602 Bytes

Contents

require 'spec_helper'

describe Rexpense::Entities::Expense do
  subject { described_class.new({}) }

  it_behaves_like "entity_attributes", [
    :id, :attachments_count, :comments_count, :activities_count, :travel_time,
    :description, :currency, :approved_amount_currency, :kind, :status,
    :distance_kind, :destination, :origin, :amount, :approved_amount, :latitude,
    :longitude, :distance, :destination_latitude, :destination_longitude,
    :origin_longitude, :origin_latitude, :tags, :liquidate_through_advancement,
    :created_at, :updated_at, :pre_expense_id, :payer, :receiver
  ]
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rexpense-2.1.0 spec/lib/rexpense/entities/expense_spec.rb
rexpense-2.0.0 spec/lib/rexpense/entities/expense_spec.rb
rexpense-1.0.0 spec/lib/rexpense/entities/expense_spec.rb