Sha256: 9817d4c5d6edbc15b8ef85eaf11992cdac92cff1410d289660f997be81bfeb17

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

require 'rails_helper'

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

1 entries across 1 versions & 1 rubygems

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