hobby-devtools 0.0.4 → 0.0.5
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 +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcb7b948a9a0b3a9f557a3ec1f6d98db72ac05c1
|
4
|
+
data.tar.gz: 2be06b8da2db013bfdc9cfa2e36486a1551b18aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b09d76ab068c5b15c456d24e93baee669ad59a1de9bdb0d6e56ad1b1f0ed292745ceb0c7f2ed920685d599e3b1060a3e5bbeb11b875c5d1342a0b7a16e3df5
|
7
|
+
data.tar.gz: 66b2c00ca955c1942e261f4216e0ca473360f8033e239e0b8df10b9b77be3568d6270f757861ca5f70229c48c974d0da71c3d15111d781852773341e6bd72282
|
data/hobby-devtools.gemspec
CHANGED
data/lib/hobby/devtools/rspec.rb
CHANGED
@@ -7,7 +7,8 @@ module Hobby
|
|
7
7
|
|
8
8
|
def initialize &block
|
9
9
|
instance_exec &block
|
10
|
-
|
10
|
+
|
11
|
+
Dir["#{path}/**/*.yml"].each do |file|
|
11
12
|
test = Hobby::Test.from_file file
|
12
13
|
::RSpec.describe [test, @app] do
|
13
14
|
before :each do |example|
|
@@ -39,8 +40,9 @@ module Hobby
|
|
39
40
|
@app = block
|
40
41
|
end
|
41
42
|
|
43
|
+
attr_reader :path
|
42
44
|
def path string = 'spec/http'
|
43
|
-
@
|
45
|
+
@path = string
|
44
46
|
end
|
45
47
|
end
|
46
48
|
end
|