Sha256: 1e3618bfd475179a912b6b38e9de8a9be15eba4120de8f235a4807dff1dc3b88

Contents?: true

Size: 1.26 KB

Versions: 18

Compression:

Stored size: 1.26 KB

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe UserGroup do
  fixtures :user_groups

  it "should contain string in its display_name" do
    user_group = user_groups(:user_group_00001)
    user_group.display_name = "en:test"
    user_group.valid?.should be_truthy
  end

  it "should not contain invalid yaml in its display_name" do
    user_group = user_groups(:user_group_00001)
    user_group.display_name = "en:test\r\nja: ใƒ†ใ‚นใƒˆ"
    user_group.valid?.should be_falsy
  end
end

# == Schema Information
#
# Table name: user_groups
#
#  id                               :integer          not null, primary key
#  name                             :string
#  display_name                     :text
#  note                             :text
#  position                         :integer
#  created_at                       :datetime
#  updated_at                       :datetime
#  deleted_at                       :datetime
#  valid_period_for_new_user        :integer          default(0), not null
#  expired_at                       :datetime
#  number_of_day_to_notify_overdue  :integer          default(1), not null
#  number_of_day_to_notify_due_date :integer          default(7), not null
#  number_of_time_to_notify_overdue :integer          default(3), not null
#

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
enju_library-0.2.0.beta.8 spec/models/user_group_spec.rb
enju_library-0.2.0.beta.7 spec/models/user_group_spec.rb
enju_library-0.2.0.beta.6 spec/models/user_group_spec.rb
enju_library-0.2.0.beta.5 spec/models/user_group_spec.rb
enju_library-0.2.0.beta.4 spec/models/user_group_spec.rb
enju_library-0.2.0.beta.3 spec/models/user_group_spec.rb
enju_library-0.2.0.beta.2 spec/models/user_group_spec.rb
enju_leaf-1.2.0.beta.1 spec/models/user_group_spec.rb
enju_leaf-1.1.4 spec/models/user_group_spec.rb
enju_leaf-1.1.3 spec/models/user_group_spec.rb
enju_leaf-1.1.2 spec/models/user_group_spec.rb
enju_leaf-1.1.1 spec/models/user_group_spec.rb
enju_leaf-1.1.0 spec/models/user_group_spec.rb
enju_leaf-1.1.0.rc22 spec/models/user_group_spec.rb
enju_leaf-1.1.0.rc21 spec/models/user_group_spec.rb
enju_leaf-1.1.0.rc20 spec/models/user_group_spec.rb
enju_leaf-1.1.0.rc19 spec/models/user_group_spec.rb
enju_leaf-1.1.0.rc18 spec/models/user_group_spec.rb