Skip to content

Commit 37cacf8

Browse files
nicolasiensencodebender
authored andcommitted
Fix Octopussy badge specs
1 parent 657f56f commit 37cacf8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/models/badges/octopussy_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'spec_helper'
22

3-
RSpec.describe Octopussy, type: :model, skip: true do
3+
RSpec.describe Octopussy, type: :model do
44
let(:repo) { Fabricate(:github_repo) }
55
let(:profile) { Fabricate(:github_profile, github_id: repo.owner.github_id) }
66
let(:user) { Fabricate(:user, github_id: profile.github_id) }
@@ -12,7 +12,7 @@
1212
end
1313

1414
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")
1616
create_team_github.add_member(pjhyett)
1717

1818
random_dude = repo.followers.create! login: 'jmcneese'
@@ -24,7 +24,7 @@
2424
end
2525

2626
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")
2828
create_team_github.add_member(pjhyett)
2929

3030
github_founder = repo.followers.create! login: 'pjhyett'
@@ -38,7 +38,7 @@
3838
end
3939

4040
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")
4242
create_team_github.add_member(pjhyett)
4343

4444
expect(Octopussy.github_team.size).to eq(1)

0 commit comments

Comments
 (0)