Skip to content

Commit 7e56700

Browse files
nicolasiensencodebender
authored andcommitted
Fix Badges/Ashcat specs
1 parent 37cacf8 commit 7e56700

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/models/github_old.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ def repo_watchers(owner, name, since=Time.at(0))
147147
end
148148

149149
def repo_contributors(owner, name, since=Time.at(0))
150-
(@client.contributors("#{owner}/#{name}", false, per_page: 100) || []).map do |user|
151-
user.except *USER_ATTRIBUTES_TO_IGNORE
152-
end
150+
@client.contributors("#{owner}/#{name}", false, per_page: 100) || []
153151
rescue Octokit::NotFound => e
154152
Rails.logger.error("Failed to find contributors for #{owner}/#{name}")
155153
return []

spec/models/badges/ashcat_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require 'vcr_helper'
2+
13
RSpec.describe Ashcat, type: :model, skip: ENV['TRAVIS'] do
24
let(:profile) { Fabricate(:github_profile) }
35
let(:contributor) { Fabricate(:user, github_id: profile.github_id, github: 'dhh') }

0 commit comments

Comments
 (0)