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-09-25 23:44:48 +08:00
|
|
|
Badge.create!(name: "test", badge_type_id: 1).system?.should == false
|
2014-07-25 13:22:29 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|