rspec-roda 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/roda.rb +2 -2
- data/lib/rspec/roda/version.rb +2 -1
- 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: 989436f8abb2396ba2d9f90b79dd67a3bb6dd50c
|
4
|
+
data.tar.gz: 50dce11cb20bc1a7e7b5e220253221944659ba04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 475e71cbaf8df872f382f45aaf5fbdff4eec95876d7741807815c9f955f019c75ae9e39fc3808e8511f38b41590773a07a4186742aa9e4d9804dcd9624e4001c
|
7
|
+
data.tar.gz: abbf97e2a6ccec490b711e74bd5273e2632fb6a90dd451f53462bac3f883eb7fad113da45ed8463decc35f227411faf323d809dc957fb31c8c5887b07d760818
|
data/lib/rspec/roda.rb
CHANGED
@@ -39,11 +39,11 @@ module RSpec
|
|
39
39
|
def roda(plugin = metadata[:name], &block)
|
40
40
|
let(:roda_class) do
|
41
41
|
route_block = self.route_block
|
42
|
-
Class.new(::Roda) do
|
42
|
+
self.class.const_set(:TestApp, Class.new(::Roda) do
|
43
43
|
plugin plugin
|
44
44
|
instance_exec(&block) if block
|
45
45
|
route { |r| instance_exec(r, &route_block) } if route_block
|
46
|
-
end
|
46
|
+
end)
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
data/lib/rspec/roda/version.rb
CHANGED