flowaker 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/flowaker/rspec.rb +11 -2
- data/lib/flowaker/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: 7496142881789e8768869ca9d0a222ae626b1923
|
4
|
+
data.tar.gz: 2ca64617f93a2bd510bb539489440054be9a0a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154613ca8cbc27805476bbb6eec29e65de3b34ff21372e75b54c4fbdb571cea11701ca09a80cdacfee928d2fa4ef31d69e17e0d4e454fbd9141a3caaa9db0d92
|
7
|
+
data.tar.gz: 858a6d4f2c626663d4f641761b390faf708ccf8465dd6cb0aa6a2a09bb19baf3a77af89f187837ea898243c5cf5e104e2b3b4a7fd18d41c1035741270f31227b
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ Only RSpec is currently supported. Feel free to add support of additional testin
|
|
10
10
|
|
11
11
|
Add this line to your application's Gemfile:
|
12
12
|
|
13
|
-
gem 'flowaker'
|
13
|
+
gem 'flowaker', require: false
|
14
14
|
|
15
15
|
And then execute:
|
16
16
|
|
@@ -22,7 +22,7 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
Finally, in your spec helper, add:
|
24
24
|
|
25
|
-
require 'flowaker
|
25
|
+
require 'flowaker'
|
26
26
|
|
27
27
|
## Usage
|
28
28
|
|
data/lib/flowaker/rspec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'delegate'
|
2
|
+
|
1
3
|
module Flowaker
|
2
4
|
module RSpec
|
3
5
|
def self.included(base)
|
@@ -8,14 +10,21 @@ module Flowaker
|
|
8
10
|
|
9
11
|
def step(description, &block)
|
10
12
|
yield
|
11
|
-
reporter.example_passed
|
13
|
+
reporter.example_passed ::Flowaker::Example.new(description, example)
|
12
14
|
end
|
13
15
|
|
14
16
|
def reporter
|
15
17
|
::RSpec.configuration.reporter
|
16
18
|
end
|
19
|
+
end
|
20
|
+
|
21
|
+
class Example < SimpleDelegator
|
22
|
+
def initialize(description, example)
|
23
|
+
@description = description
|
24
|
+
super(example)
|
25
|
+
end
|
17
26
|
|
18
|
-
|
27
|
+
attr_reader :description
|
19
28
|
end
|
20
29
|
end
|
21
30
|
|
data/lib/flowaker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flowaker
|
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
|
- Jon Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|