Sha256: d62d900b2a5f00a83ba09f1da4cd679a559144a404065d181a5a90050bd19733

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

require 'rails_helper'

module Anoubis
  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

6 entries across 6 versions & 1 rubygems

Version Path
anoubis-1.0.12 spec/models/anoubis/system_locale_spec.rb
anoubis-1.0.11 spec/models/anoubis/system_locale_spec.rb
anoubis-1.0.10 spec/models/anoubis/system_locale_spec.rb
anoubis-1.0.8 spec/models/anoubis/system_locale_spec.rb
anoubis-1.0.7 spec/models/anoubis/system_locale_spec.rb
anoubis-1.0.1 spec/models/anoubis/system_locale_spec.rb