assert-rack-test 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/assert-rack-test.rb +10 -2
- data/lib/assert-rack-test/version.rb +1 -1
- metadata +3 -3
data/lib/assert-rack-test.rb
CHANGED
@@ -1,14 +1,22 @@
|
|
1
1
|
require 'assert'
|
2
2
|
require 'rack/test'
|
3
3
|
|
4
|
+
require 'assert-rack-test/version'
|
5
|
+
|
4
6
|
module Assert
|
5
7
|
module Rack
|
6
8
|
module Test
|
7
|
-
|
9
|
+
|
10
|
+
def self.included(klass)
|
11
|
+
klass.class_eval do
|
12
|
+
include ::Rack::Test::Methods
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
8
16
|
end
|
9
17
|
end
|
10
18
|
end
|
11
19
|
|
12
20
|
Assert::Context.class_eval do
|
13
|
-
include Rack::Test
|
21
|
+
include Assert::Rack::Test
|
14
22
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assert-rack-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kelly Redding
|