summaryrefslogtreecommitdiff
path: root/spec/models/profile_spec.rb
blob: 2dddb5694cb56d8864c39dbcd7377a0e21b51238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'rails_helper'

describe Profile do
  let(:user) { create(:user) }

  describe "profile owner" do
    it "has profile" do
      expect(user.profile).to_not eql(nil)
    end
  end

  describe "gender" do
    it "defaults to unset" do
      expect(user.profile.other?).to be_truthy
    end
  end

  describe "social tolerance" do
    it "defaults to unset" do
      expect(user.profile.social_tolerance).to eql(nil)
    end
  end
end