2014-07-25 13:22:29 +08:00
|
|
|
require 'spec_helper'
|
|
|
|
require_dependency 'badge'
|
|
|
|
|
|
|
|
describe Badge do
|
|
|
|
|
|
|
|
it 'has a valid system attribute for new badges' do
|
2014-08-06 08:51:39 +08:00
|
|
|
Badge.create!(name: "test", badge_type_id: 1).system?.should be_false
|
2014-07-25 13:22:29 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|