mocoso 0.1.0 → 0.1.1
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/README.md +1 -1
- data/lib/mocoso.rb +3 -2
- data/mocoso.gemspec +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: 1283ed93b23af638c9a86fd990401f029dcfdd9b
|
|
4
|
+
data.tar.gz: 72c029be3e9ef334de2629a1cf0a29a2ed371257
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f22f6a0dd4ae5a4eaaf2236d079f1e9035a34ad247cbb3a107c583f5a082390b5bdd16a0f66119e0c8b0d9ae412c36069795941897e57635189ff696a4692724
|
|
7
|
+
data.tar.gz: b24cf1f6dd2ef4e4177b63e11e845cb89914942ed5e4b3f2b39a587eef3d47fa91fd9f6b88abcbff212ea6bc86e95c5107b3dcfae260a35a89f31841c0ff07c2
|
data/README.md
CHANGED
data/lib/mocoso.rb
CHANGED
|
@@ -124,10 +124,11 @@ module Mocoso
|
|
|
124
124
|
# # => true
|
|
125
125
|
# end
|
|
126
126
|
#
|
|
127
|
-
def expect object, method,
|
|
127
|
+
def expect object, method, options, &block
|
|
128
128
|
expectation = -> *params {
|
|
129
|
+
with = options.fetch(:with) { [] }
|
|
129
130
|
raise ExpectationError, "Expected #{with}, got #{params}" if params != with
|
|
130
|
-
returns
|
|
131
|
+
options.fetch(:returns)
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
stub object, method, expectation, &block
|
data/mocoso.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mocoso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Francesco Rodríguez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cutest
|