Sha256: 11ab1f38f7995c390b1a99b2f76ba44cf4a2e52b708171cb8806afd3097adda3

Contents?: true

Size: 648 Bytes

Versions: 6

Compression:

Stored size: 648 Bytes

Contents

require 'rails_helper'

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

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

    it "can change title" do
      group_locale = create :group_locale
      group_locale.title = 'Work Group Test'
      expect(group_locale.save).to eq true
    end

    it "can destroy" do
      group_locale = create :group_locale, title: 'Destroy'
      group_locale.destroy
      expect(group_locale.destroyed?).to eq true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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