This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
discourse/spec/models/user_stat_spec.rb

12 lines
217 B
Ruby
Raw Normal View History

require 'spec_helper'
describe UserStat do
it { should belong_to :user }
it "is created automatically when a user is created" do
user = Fabricate(:evil_trout)
user.user_stat.should be_present
end
end