Sha256: 1ba14eb522c66fb7b195178e5c44c678615cf85058a67cfd4e2bffe7c4f70085
Contents?: true
Size: 1.23 KB
Versions: 10
Compression:
Stored size: 1.23 KB
Contents
require 'rails_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(7), not null # number_of_day_to_notify_due_date :integer default(3), not null # number_of_time_to_notify_overdue :integer default(3), not null #
Version data entries
10 entries across 10 versions & 1 rubygems