assert-rack-test 1.0.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/.ruby-version +1 -0
- data/Gemfile +3 -1
- data/assert-rack-test.gemspec +4 -2
- data/lib/assert-rack-test.rb +3 -5
- data/lib/assert-rack-test/version.rb +1 -1
- data/test/helper.rb +0 -9
- data/test/support/factory.rb +1 -2
- data/test/unit/assert-rack-test_tests.rb +5 -7
- metadata +48 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: aac6a95da870c26e356087445a4f8638e5a4617f76e69581f6e9fea400bdea5a
|
4
|
+
data.tar.gz: eb87e14ffb1e061c8be4e48eac760331b7006b31e47f7f99b9f9bfdf9ea4e76e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 41370665d50b23cbc2ee77d701b5c5ad425f8b9d5f90fc660949a3e147b53b5ab6a2c4326a52b36667233babf599b34a591ff6d5c86b4725e54e2a71997126ab
|
7
|
+
data.tar.gz: 442c548d94ed542cda32b5bae83c563066fc9bb79bd7a127ba2373831aaa42193719ad3a7fbc6b2aec93f3c56e7e14892459177aa5ca510faebe438c761a3005
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.5
|
data/Gemfile
CHANGED
data/assert-rack-test.gemspec
CHANGED
@@ -18,8 +18,10 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
|
21
|
-
gem.
|
22
|
-
|
21
|
+
gem.required_ruby_version = "~> 2.5"
|
22
|
+
|
23
|
+
gem.add_development_dependency("assert", ["~> 2.19.0"])
|
24
|
+
gem.add_dependency("rack-test", ["~> 1.1"])
|
23
25
|
|
24
26
|
end
|
25
27
|
|
data/lib/assert-rack-test.rb
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
1
|
+
require "assert/context"
|
2
|
+
require "rack/test"
|
3
|
+
require "assert-rack-test/version"
|
4
4
|
|
5
5
|
module Assert::Rack::Test
|
6
|
-
|
7
6
|
def self.included(klass)
|
8
7
|
klass.class_eval do
|
9
8
|
include ::Rack::Test::Methods
|
10
9
|
end
|
11
10
|
end
|
12
|
-
|
13
11
|
end
|
14
12
|
|
15
13
|
Assert::Context.class_eval do
|
data/test/helper.rb
CHANGED
@@ -8,12 +8,3 @@ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
|
|
8
8
|
require 'pry'
|
9
9
|
|
10
10
|
require 'test/support/factory'
|
11
|
-
|
12
|
-
# 1.8.7 backfills
|
13
|
-
|
14
|
-
# Array#sample
|
15
|
-
if !(a = Array.new).respond_to?(:sample) && a.respond_to?(:choice)
|
16
|
-
class Array
|
17
|
-
alias_method :sample, :choice
|
18
|
-
end
|
19
|
-
end
|
data/test/support/factory.rb
CHANGED
@@ -1,19 +1,17 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "assert"
|
2
|
+
require "assert-rack-test"
|
3
3
|
|
4
4
|
module Assert::Rack::Test
|
5
|
-
|
6
5
|
class UnitTests < Assert::Context
|
7
6
|
desc "Assert::Context"
|
7
|
+
subject{ @context_class }
|
8
|
+
|
8
9
|
setup do
|
9
10
|
@context_class = Assert::Context
|
10
11
|
end
|
11
|
-
subject{ @context_class }
|
12
12
|
|
13
13
|
should "include the Rack::Test::Methods" do
|
14
|
-
|
14
|
+
assert_that(subject).includes(Rack::Test::Methods)
|
15
15
|
end
|
16
|
-
|
17
16
|
end
|
18
|
-
|
19
17
|
end
|
metadata
CHANGED
@@ -1,48 +1,53 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: assert-rack-test
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Collin Redding
|
8
8
|
- Kelly Redding
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2020-12-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: assert
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 2.19.0
|
21
|
+
type: :development
|
17
22
|
prerelease: false
|
18
|
-
|
19
|
-
requirements:
|
20
|
-
- - ~>
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 2.
|
23
|
-
|
24
|
-
version_requirements: *id001
|
25
|
-
- !ruby/object:Gem::Dependency
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 2.19.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
26
29
|
name: rack-test
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
version: 0.6.3
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.1'
|
33
35
|
type: :runtime
|
34
|
-
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.1'
|
35
42
|
description: Assert with Rack::Test
|
36
|
-
email:
|
43
|
+
email:
|
37
44
|
- collin.redding@me.com, kelly@kellyredding.com
|
38
45
|
executables: []
|
39
|
-
|
40
46
|
extensions: []
|
41
|
-
|
42
47
|
extra_rdoc_files: []
|
43
|
-
|
44
|
-
|
45
|
-
- .
|
48
|
+
files:
|
49
|
+
- ".gitignore"
|
50
|
+
- ".ruby-version"
|
46
51
|
- Gemfile
|
47
52
|
- LICENSE
|
48
53
|
- README.md
|
@@ -55,32 +60,29 @@ files:
|
|
55
60
|
- test/unit/assert-rack-test_tests.rb
|
56
61
|
- tmp/.gitkeep
|
57
62
|
homepage: https://github.com/redding/assert-rack-test
|
58
|
-
licenses:
|
63
|
+
licenses:
|
59
64
|
- MIT
|
60
65
|
metadata: {}
|
61
|
-
|
62
66
|
post_install_message:
|
63
67
|
rdoc_options: []
|
64
|
-
|
65
|
-
require_paths:
|
68
|
+
require_paths:
|
66
69
|
- lib
|
67
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
-
requirements:
|
69
|
-
-
|
70
|
-
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '2.5'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
76
80
|
requirements: []
|
77
|
-
|
78
|
-
rubyforge_project:
|
79
|
-
rubygems_version: 2.6.6
|
81
|
+
rubygems_version: 3.1.2
|
80
82
|
signing_key:
|
81
83
|
specification_version: 4
|
82
84
|
summary: Assert with Rack::Test
|
83
|
-
test_files:
|
85
|
+
test_files:
|
84
86
|
- test/helper.rb
|
85
87
|
- test/support/factory.rb
|
86
88
|
- test/unit/assert-rack-test_tests.rb
|