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