Sha256: 6ce91232f55351a7616ecbeefd974da79e4065497a30a4ed6043feb9630960af

Contents?: true

Size: 251 Bytes

Versions: 5

Compression:

Stored size: 251 Bytes

Contents

require "rails_helper"

RSpec.describe Ticket, type: :model do
  describe "associations" do
    it { should have_many(:transactions) }
  end

  describe "validations" do
    it { should enumerize(:payment_state).in(Ticket::PAYMENT_STATES) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
punto_pagos_rails-1.6.0 spec/dummy/spec/models/ticket_spec.rb
punto_pagos_rails-1.5.0 spec/dummy/spec/models/ticket_spec.rb
punto_pagos_rails-1.4.0 spec/dummy/spec/models/ticket_spec.rb
punto_pagos_rails-1.3.1 spec/dummy/spec/models/ticket_spec.rb
punto_pagos_rails-1.3.0 spec/dummy/spec/models/ticket_spec.rb