Sha256: 5be206c664bcbd59c0708eaa970718f8040c07a439fc3abaf5d68c8e7e36a6b1
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
# frozen_string_literal: true require "rails_helper" RSpec.describe Device, type: :model do context "associations" do it {is_expected.to belong_to :resourceable} end context "enum" do it {should define_enum_for(:platform).with_values({web: 0, ios: 1, android: 2})} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
n_base_rails-0.1.2 | lib/spec/models/device_spec.rb |
n_base_rails-0.1.1 | lib/spec/models/device_spec.rb |