assert-rack-test 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: a73f371ff6d0dc466c899c3e417e31c18a58be17
4
+ metadata.gz: 5a62fe288596652ec541068de72405f3aae46da6
5
+ SHA512:
6
+ data.tar.gz: 1c85684a0bde84fd939a572a718231da4fbf9c2632bbd36d92d5008088ffe4ca263d46b51d5ad91f29d786258f4fe5625e01e14da81663558ea17e9fc75069c0
7
+ metadata.gz: 1f731492e9d4452a5af3890f1f3f29e1908ff80106512d7f986c95c719411498ddbcd92c7e03d033c67d06551d956a0264429dc8b61c3c517209023a71ac62a7
data/Gemfile CHANGED
@@ -2,5 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'rake'
6
- gem 'pry'
5
+ gem 'pry', "~> 0.9.0"
File without changes
@@ -8,16 +8,17 @@ Gem::Specification.new do |gem|
8
8
  gem.version = Assert::Rack::Test::VERSION
9
9
  gem.authors = ["Collin Redding", "Kelly Redding"]
10
10
  gem.email = ["collin.redding@me.com, kelly@kellyredding.com"]
11
- gem.description = %q{Assert with Rack::Test}
12
11
  gem.summary = %q{Assert with Rack::Test}
12
+ gem.description = %q{Assert with Rack::Test}
13
13
  gem.homepage = "https://github.com/redding/assert-rack-test"
14
+ gem.license = 'MIT'
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
19
  gem.require_paths = ["lib"]
19
20
 
20
- gem.add_dependency("assert", ["~> 2.0"])
21
+ gem.add_dependency("assert", ["~> 2.16.1"])
21
22
  gem.add_dependency("rack-test", ["~> 0.6"])
22
23
 
23
24
  end
@@ -1,5 +1,5 @@
1
1
  module Assert; end
2
2
  module Assert::Rack; end
3
3
  module Assert::Rack::Test
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
@@ -7,3 +7,13 @@ $LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
7
7
  # require pry for debugging (`binding.pry`)
8
8
  require 'pry'
9
9
 
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
@@ -0,0 +1,6 @@
1
+ require 'assert/factory'
2
+
3
+ module Factory
4
+ extend Assert::Factory
5
+
6
+ end
@@ -3,19 +3,17 @@ require 'assert-rack-test'
3
3
 
4
4
  module Assert::Rack::Test
5
5
 
6
- class BaseTests < Assert::Context
6
+ class UnitTests < Assert::Context
7
7
  desc "Assert::Context"
8
8
  setup do
9
- @class = Assert::Context
10
- @instance = Assert::Context.new
9
+ @context_class = Assert::Context
11
10
  end
12
- subject{ @instance }
13
-
14
- should have_instance_methods :get, :post, :put, :delete
11
+ subject{ @context_class }
15
12
 
16
13
  should "include the Rack::Test::Methods" do
17
- assert_includes Rack::Test::Methods, @class.included_modules
14
+ assert_includes Rack::Test::Methods, subject
18
15
  end
16
+
19
17
  end
20
18
 
21
19
  end
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assert-rack-test
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 3
10
- version: 1.0.3
4
+ version: 1.0.4
11
5
  platform: ruby
12
6
  authors:
13
7
  - Collin Redding
@@ -16,35 +10,25 @@ autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
12
 
19
- date: 2013-03-28 00:00:00 Z
13
+ date: 2016-06-01 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: assert
23
17
  prerelease: false
24
18
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
19
  requirements:
27
20
  - - ~>
28
21
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 2
32
- - 0
33
- version: "2.0"
22
+ version: 2.16.1
34
23
  type: :runtime
35
24
  version_requirements: *id001
36
25
  - !ruby/object:Gem::Dependency
37
26
  name: rack-test
38
27
  prerelease: false
39
28
  requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
29
  requirements:
42
30
  - - ~>
43
31
  - !ruby/object:Gem::Version
44
- hash: 7
45
- segments:
46
- - 0
47
- - 6
48
32
  version: "0.6"
49
33
  type: :runtime
50
34
  version_requirements: *id002
@@ -60,18 +44,20 @@ extra_rdoc_files: []
60
44
  files:
61
45
  - .gitignore
62
46
  - Gemfile
63
- - LICENSE.txt
47
+ - LICENSE
64
48
  - README.md
65
- - Rakefile
66
49
  - assert-rack-test.gemspec
67
50
  - lib/assert-rack-test.rb
68
51
  - lib/assert-rack-test/version.rb
69
52
  - log/.gitkeep
70
53
  - test/helper.rb
54
+ - test/support/factory.rb
71
55
  - test/unit/assert-rack-test_tests.rb
72
56
  - tmp/.gitkeep
73
57
  homepage: https://github.com/redding/assert-rack-test
74
- licenses: []
58
+ licenses:
59
+ - MIT
60
+ metadata: {}
75
61
 
76
62
  post_install_message:
77
63
  rdoc_options: []
@@ -79,30 +65,22 @@ rdoc_options: []
79
65
  require_paths:
80
66
  - lib
81
67
  required_ruby_version: !ruby/object:Gem::Requirement
82
- none: false
83
68
  requirements:
84
- - - ">="
69
+ - &id003
70
+ - ">="
85
71
  - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
72
  version: "0"
90
73
  required_rubygems_version: !ruby/object:Gem::Requirement
91
- none: false
92
74
  requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
75
+ - *id003
99
76
  requirements: []
100
77
 
101
78
  rubyforge_project:
102
- rubygems_version: 1.8.24
79
+ rubygems_version: 2.6.4
103
80
  signing_key:
104
- specification_version: 3
81
+ specification_version: 4
105
82
  summary: Assert with Rack::Test
106
83
  test_files:
107
84
  - test/helper.rb
85
+ - test/support/factory.rb
108
86
  - test/unit/assert-rack-test_tests.rb
data/Rakefile DELETED
@@ -1 +0,0 @@
1
- require "bundler/gem_tasks"