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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bd53c2b9f29d4a668d658618bf2a8682d37cf4c
4
- data.tar.gz: 2300fcdd96550aba921b1eb8052ba072ccdfd42e
3
+ metadata.gz: 989436f8abb2396ba2d9f90b79dd67a3bb6dd50c
4
+ data.tar.gz: 50dce11cb20bc1a7e7b5e220253221944659ba04
5
5
  SHA512:
6
- metadata.gz: ca9854430cd4de1beb2e604f909e9b4cc777c5eb5d7d8dd94ff5ef4ec2cf23113909e5d7d0acbd2c951f58c15aae947c3e661fa0a476084098ca4b613d1e5fd0
7
- data.tar.gz: 35b0ff324b457af0434d334e4768ad601bc0ef239e12be136f630c6ca27a25c2627efc159a9f82de4ebdb7b5c2b5ff5fa5c7a5f36ff8c721d9ba494760b1dd2b
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
 
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module RSpec
3
4
  module Roda
4
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
5
6
  end
6
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-roda
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
  - Alex Semyonov