lawyer 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lawyer/rspec/contract_double.rb +2 -0
- data/lib/lawyer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4dbbfd3ee37e37672ccc73e5ef501e88db69321
|
4
|
+
data.tar.gz: ec171d5980b1301545ebf03eda89fcdb6e294199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce307fc1467871f51be728fcaa1320ef4be5203467ab99405e26f34de76236f259e4b63bfdb91c2861cde8c3afe8ef9bd5534147896278f02a3c93ba0dd9cafd
|
7
|
+
data.tar.gz: a0c54a40b9d872988afb698c8d1d8cdc5228932c3f89c0b12fa29be4ebefdc2fdc56d5c0489d490860ac0f2ac61d31af46934fdcb1a7db484a13d09149b3721a
|
@@ -4,6 +4,8 @@ module Lawyer
|
|
4
4
|
def contract_double(contract, return_values = {})
|
5
5
|
methods = {}
|
6
6
|
contract.clauses.each do |clause|
|
7
|
+
next if clause.name.to_sym == :initialize
|
8
|
+
|
7
9
|
return_value = if return_values.has_key?(clause.name.to_sym)
|
8
10
|
return_values[clause.name.to_sym]
|
9
11
|
else
|
data/lib/lawyer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lawyer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Cinnamond
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|