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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/mocoso.rb +3 -2
  4. data/mocoso.gemspec +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5c21876105f80fb7e2c5f0f72b09406e83be714
4
- data.tar.gz: af2c896fb182aa84454381aaa4060b3a04245078
3
+ metadata.gz: 1283ed93b23af638c9a86fd990401f029dcfdd9b
4
+ data.tar.gz: 72c029be3e9ef334de2629a1cf0a29a2ed371257
5
5
  SHA512:
6
- metadata.gz: a5e18f8f38ba523988872a90be55bd2a3d0685258741fb13e238657c612c48c7fedbb1a2e9fa032f100b1ecb1d0385c817d62cfa7ad4b5b3b83c0ebf8960a402
7
- data.tar.gz: 5f717db7f95cf129560e2e2c2f40b710d88860593e240d9d9afba63ee1fe99b5ac90ee8138f2edf3907933b2b7a5352c1332be6875527537c48227b9c908132f
6
+ metadata.gz: f22f6a0dd4ae5a4eaaf2236d079f1e9035a34ad247cbb3a107c583f5a082390b5bdd16a0f66119e0c8b0d9ae412c36069795941897e57635189ff696a4692724
7
+ data.tar.gz: b24cf1f6dd2ef4e4177b63e11e845cb89914942ed5e4b3f2b39a587eef3d47fa91fd9f6b88abcbff212ea6bc86e95c5107b3dcfae260a35a89f31841c0ff07c2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Mocoso [![Build Status](https://travis-ci.org/frodsan/mocoso.png)](https://travis-ci.org/frodsan/mocoso)
1
+ Mocoso
2
2
  ======
3
3
 
4
4
  Yet Another Simple Stub & Mock library. This is stolen from tools such as
data/lib/mocoso.rb CHANGED
@@ -124,10 +124,11 @@ module Mocoso
124
124
  # # => true
125
125
  # end
126
126
  #
127
- def expect object, method, with: [], returns:, &block
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'mocoso'
5
- s.version = '0.1.0'
5
+ s.version = '0.1.1'
6
6
  s.summary = 'A simple stub & mock library'
7
7
  s.description = s.summary
8
8
  s.authors = ['Francesco Rodríguez']
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2013-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cutest