payola-payments 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/payola/transactions_controller.rb +2 -2
- data/app/views/payola/transactions/_checkout.html.erb +16 -15
- data/lib/payola-payments.rb +1 -0
- data/lib/payola/engine.rb +8 -0
- data/lib/payola/version.rb +1 -1
- data/lib/payola/worker.rb +16 -4
- data/spec/dummy/app/views/buy/index.html.erb +1 -1
- data/spec/dummy/log/development.log +207 -0
- data/spec/dummy/log/test.log +1154 -0
- data/spec/worker_spec.rb +0 -7
- metadata +3 -2
data/spec/worker_spec.rb
CHANGED
@@ -18,13 +18,6 @@ module Payola
|
|
18
18
|
end
|
19
19
|
|
20
20
|
describe "#call" do
|
21
|
-
it "should include ::Sidekiq::Worker" do
|
22
|
-
Payola::Worker::Sidekiq.should_receive(:include).with(::Sidekiq::Worker)
|
23
|
-
Payola::Worker::Sidekiq.should_receive(:perform_async)
|
24
|
-
sale = double()
|
25
|
-
sale.should_receive(:guid).and_return('blah')
|
26
|
-
Payola::Worker::Sidekiq.call(sale)
|
27
|
-
end
|
28
21
|
it "should call perform_async" do
|
29
22
|
Payola::Worker::Sidekiq.should_receive(:perform_async)
|
30
23
|
sale = double()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payola-payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Keen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -186,6 +186,7 @@ files:
|
|
186
186
|
- db/migrate/20141002013618_create_payola_coupons.rb
|
187
187
|
- db/migrate/20141002013701_create_payola_affiliates.rb
|
188
188
|
- db/migrate/20141002203725_add_stripe_customer_id_to_sale.rb
|
189
|
+
- lib/payola-payments.rb
|
189
190
|
- lib/payola.rb
|
190
191
|
- lib/payola/engine.rb
|
191
192
|
- lib/payola/version.rb
|