fake_paymill 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/README.md +29 -3
- data/fake_paymill.gemspec +1 -0
- data/lib/fake_paymill/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efedd4849f087cde4d532f0f19f86e749184098c
|
4
|
+
data.tar.gz: cc2ee525e0119c1c738ba1783caafe919521d032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2fb4fccee1b5db661abce4faceb55250920675156a847d171234188cc94d42048f9bbd735a56866483bbe404b76014575a041258b18833a793229124d8fb87d
|
7
|
+
data.tar.gz: 9a15087566058075c4fb804a40d10f635ab3176d0b47c93e9ca591e929fb6788112cc2be4fae6e578121ea02c72acf19f6d65289c0634400c0dd82a9a3ee68bb
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# FakePaymill
|
1
|
+
# FakePaymill
|
2
2
|
[](https://travis-ci.org/zamith/fake-paymill)
|
3
3
|
|
4
4
|
A Paymill fake so that you can avoid hitting Paymill's servers in tests
|
@@ -7,7 +7,7 @@ A Paymill fake so that you can avoid hitting Paymill's servers in tests
|
|
7
7
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
10
|
-
gem 'fake_paymill'
|
10
|
+
gem 'fake_paymill', require: false, group: :test
|
11
11
|
|
12
12
|
And then execute:
|
13
13
|
|
@@ -19,7 +19,33 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
-
|
22
|
+
|
23
|
+
Just require the library and you're good to go:
|
24
|
+
|
25
|
+
require 'fake_paymill'
|
26
|
+
|
27
|
+
`FakePaymill.clear!` will clear all data, which you almost certainly want to do
|
28
|
+
before each test.
|
29
|
+
|
30
|
+
Full example:
|
31
|
+
|
32
|
+
# spec/spec_helper.rb
|
33
|
+
require 'fake_paymill'
|
34
|
+
|
35
|
+
RSpec.configure do |c|
|
36
|
+
c.before do
|
37
|
+
FakePaymill.clear!
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
If you're using Cucumber, add this too:
|
42
|
+
|
43
|
+
# features/support/env.rb
|
44
|
+
require 'fake_paymill'
|
45
|
+
|
46
|
+
Before do
|
47
|
+
FakePaymill.clear!
|
48
|
+
end
|
23
49
|
|
24
50
|
## Contributing
|
25
51
|
|
data/fake_paymill.gemspec
CHANGED
data/lib/fake_paymill/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fake_paymill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zamith
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: paymill
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: sinatra
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|