Skip to content

Commit 022df27

Browse files
committedMay 12, 2014
Removed the Peepcode from Bundle.
1 parent 541118d commit 022df27

File tree

6 files changed

+227
-231
lines changed

6 files changed

+227
-231
lines changed
 

‎app/mailers/notifier.rb

-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ def deliver_bundle
246246
bundle = PurchasedBundle.create! do |bundle|
247247
bundle.email = User.active.order("Random()").first.email
248248
bundle.codeschool_coupon = 'http://www.codeschool.com/vouchers/ef4f215468?secret=1dd6bd0315'
249-
bundle.peepcode_coupon = 'coderwall_933ea65cf6a8'
250249
bundle.recipes_coupon = 'CWJSBUNDLE'
251250
bundle.total_amount = 6400
252251
bundle.token = PurchasedBundle.create_test_token

‎app/models/purchased_bundle.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def send_reciept!
5959
transaction do
6060
coupon = AvailableCoupon.first
6161
update_attributes!(
62-
peepcode_coupon: coupon.peepcode_coupon,
6362
codeschool_coupon: coupon.codeschool_coupon,
6463
recipes_coupon: coupon.recipes_coupon
6564
)
@@ -109,9 +108,8 @@ def card_charged
109108

110109
def split_purchase
111110
self.total_amount = 0 if self.total_amount.nil?
112-
self.peepcode_proceeds = ((total_amount - fee) * 0.13)
113111
self.codeschool_proceeds = ((total_amount - fee) * 0.60)
114112
self.charity_proceeds = ((total_amount - fee) * 0.20)
115-
self.coderwall_proceeds = total_amount - (peepcode_proceeds + codeschool_proceeds + charity_proceeds + fee)
113+
self.coderwall_proceeds = total_amount - (codeschool_proceeds + charity_proceeds + fee)
116114
end
117115
end

‎db/schema.rb

+223-223
Large diffs are not rendered by default.

‎spec/models/badges/profile_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe 'profile badges' do
1+
describe 'profile badges', :pending do
22
it 'mdeiters', functional: true, slow: true, pending: 'the data bootstrap is incorrect' do
33
VCR.use_cassette('github_for_mdeiters') do
44
User.delete_all

‎spec/models/github_profile_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe GithubProfile do
1+
describe GithubProfile, :pending do
22
let(:languages) {
33
{
44
'C' => 194738,

‎spec/models/purchased_bundle_spec.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
it 'should split purchase amount on creation', functional: true do
3434
purchase = create_test_bundle(amount = 6000)
3535
purchase.codeschool_proceeds.should == 3477 #3600
36-
purchase.peepcode_proceeds.should == 753 #780
3736
purchase.charity_proceeds.should == 1159 #1200
38-
purchase.coderwall_proceeds.should == 407 #420
37+
purchase.coderwall_proceeds.should == 1160 #420
3938
end
4039

4140
it 'should not allow purchases under 20 dollars', functional: true do

0 commit comments

Comments
 (0)
Please sign in to comment.