Sha256: f7b0cde4761d139edb1254c60b2c3372734000f07e073525c9766215e6d53245

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

require 'rails_helper'

module Anubis
  RSpec.describe SystemLocale, type: :model do
    it "has short title" do
      expect(build_stubbed(:system_locale, title: 'T'*2)).to be_invalid
    end

    it "has long title" do
      expect(build_stubbed(:system_locale, title: 'T'*101)).to be_invalid
    end

    it "has duplicated title" do
      system = create :system
      create :system_locale, system: system
      expect(build_stubbed(:system_locale, system: system)).to be_invalid
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anoubis-1.0.0 spec/models/anoubis/system_locale_spec.rb