|
1 | 1 | require 'spec_helper'
|
2 | 2 |
|
3 |
| -RSpec.describe Octopussy, type: :model, skip: true do |
| 3 | +RSpec.describe Octopussy, type: :model do |
4 | 4 | let(:repo) { Fabricate(:github_repo) }
|
5 | 5 | let(:profile) { Fabricate(:github_profile, github_id: repo.owner.github_id) }
|
6 | 6 | let(:user) { Fabricate(:user, github_id: profile.github_id) }
|
|
12 | 12 | end
|
13 | 13 |
|
14 | 14 | it 'does not award the badge if no followers work at github' do
|
15 |
| - create_team_github = Fabricate(:team, _id: Octopussy::GITHUB_TEAM_ID_IN_PRODUCTION) |
| 15 | + create_team_github = Fabricate(:team, name: "Github") |
16 | 16 | create_team_github.add_member(pjhyett)
|
17 | 17 |
|
18 | 18 | random_dude = repo.followers.create! login: 'jmcneese'
|
|
24 | 24 | end
|
25 | 25 |
|
26 | 26 | it 'awards badge when repo followed by github team' do
|
27 |
| - create_team_github = Fabricate(:team, _id: Octopussy::GITHUB_TEAM_ID_IN_PRODUCTION) |
| 27 | + create_team_github = Fabricate(:team, name: "Github") |
28 | 28 | create_team_github.add_member(pjhyett)
|
29 | 29 |
|
30 | 30 | github_founder = repo.followers.create! login: 'pjhyett'
|
|
38 | 38 | end
|
39 | 39 |
|
40 | 40 | it 'should cache github team members' do
|
41 |
| - create_team_github = Fabricate(:team, _id: Octopussy::GITHUB_TEAM_ID_IN_PRODUCTION) |
| 41 | + create_team_github = Fabricate(:team, name: "Github") |
42 | 42 | create_team_github.add_member(pjhyett)
|
43 | 43 |
|
44 | 44 | expect(Octopussy.github_team.size).to eq(1)
|
|
0 commit comments