Sha256: 14d10f2f687147b6528adeeff02120ec270a57041e9871b13892f9e46b10e760
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require 'test_helper' class Ccls::RoleTest < ActiveSupport::TestCase assert_should_act_as_list assert_should_require(:name) assert_should_require_unique(:name) assert_should_habtm(:users) test "should create role" do assert_difference('Role.count',1) do role = create_role assert !role.new_record?, "#{role.errors.full_messages.to_sentence}" end end #protected # # def create_role(options = {}) # role = Factory.build(:role,options) # role.save # role # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccls-ccls_engine-3.11.0 | test/unit/ccls/role_test.rb |