hobby-devtools 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hobby-devtools.gemspec +1 -1
- data/lib/hobby/devtools/rspec.rb +9 -5
- 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: 0cee290e620202afcadfb38ef23f0fb17ee057ad
|
4
|
+
data.tar.gz: e272108a69425a8267a98a8fa870a5110ec1a085
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1dda6f61608922b7a12350ad6cb69c2ced77da304c133b54c679b32071738a73278285dd1260b8694d5e1ff308f7fff77f6242f7f7e4e6b2935a32fe967bfebd
|
7
|
+
data.tar.gz: e251fdb7509e8473159bd1dc3654e24c600c77af15351869a6046f15ed68f070af21fdd9d2ed9bc6cb7e11de8623abac3221d54a89bd347bfb28aec808544e24
|
data/hobby-devtools.gemspec
CHANGED
data/lib/hobby/devtools/rspec.rb
CHANGED
@@ -6,10 +6,11 @@ module Hobby
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def initialize &block
|
9
|
+
@path = 'spec/http'
|
9
10
|
instance_exec &block
|
10
11
|
|
11
|
-
Dir["#{path}/**/*.yml"].each do |file|
|
12
|
-
test = Hobby::Test.from_file file
|
12
|
+
Dir["#{@path}/**/*.yml"].each do |file|
|
13
|
+
test = Hobby::Test.from_file file, format: @format
|
13
14
|
::RSpec.describe [test, @app] do
|
14
15
|
before :each do |example|
|
15
16
|
test, app = described_class
|
@@ -40,9 +41,12 @@ module Hobby
|
|
40
41
|
@app = block
|
41
42
|
end
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
|
44
|
+
def path path
|
45
|
+
@path = path
|
46
|
+
end
|
47
|
+
|
48
|
+
def format format
|
49
|
+
@format = format
|
46
50
|
end
|
47
51
|
end
|
48
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobby-devtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoly Chernow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hobby
|