discourse/spec/models/badge_spec.rb

12 lines
209 B
Ruby
Raw Normal View History

require 'spec_helper'
require_dependency 'badge'
describe Badge do
it 'has a valid system attribute for new badges' do
Badge.create!(name: "test", badge_type_id: 1).system?.should == false
end
end