minitest-spec-rails 5.2.2 → 5.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +11 -1
- data/CHANGELOG.md +4 -0
- data/CODE_OF_CONDUCT.md +31 -0
- data/lib/minitest-spec-rails/version.rb +1 -1
- data/minitest-spec-rails.gemspec +1 -1
- data/test/cases/active_job_test.rb +2 -0
- data/test/dummy_app/app/controllers/application_controller.rb +1 -1
- data/test/dummy_tests/application_controller_test.rb +3 -3
- data/test/dummy_tests/users_controller_test.rb +9 -3
- data/test/support/shared_test_case_behavior.rb +5 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 045cc96d9f967df6f7fac7bb50618b82db091bd7
|
4
|
+
data.tar.gz: 3ca64aeb8318e5492e3711e5cc2292a873a0a766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0b0650216416c4acad80070880971ad169e3b3d99d6cfd42a57bd778ce56366760ac73b6b1cf448559cab4282be857e3fa2f877920191a1b830beac0e2b2b78
|
7
|
+
data.tar.gz: 6f30fba8c469b32a4262ec5e3ad0f11192de9f6fa97ed357a06ca773932dce4093c2d12d9fc93b9202f64fd63198a33b87ae94accc07070c9a3f3c684d362e1c
|
data/Appraisals
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
|
2
2
|
appraise 'rails41' do
|
3
|
+
gem 'rails', '~> 4.1.0'
|
3
4
|
end
|
4
5
|
|
5
6
|
appraise 'rails42' do
|
6
|
-
gem 'rails', '4.2.0
|
7
|
+
gem 'rails', '~> 4.2.0'
|
8
|
+
end
|
9
|
+
|
10
|
+
appraise 'rails50' do
|
11
|
+
gem 'rails', github: 'rails/rails'
|
12
|
+
gem 'sprockets-rails', github: "rails/sprockets-rails"
|
13
|
+
gem 'sprockets', github: "rails/sprockets"
|
14
|
+
gem 'sass-rails', github: "rails/sass-rails"
|
15
|
+
gem 'arel', github: "rails/arel"
|
16
|
+
gem 'rack', github: 'rack/rack'
|
7
17
|
end
|
data/CHANGELOG.md
CHANGED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all
|
4
|
+
people who contribute through reporting issues, posting feature requests,
|
5
|
+
updating documentation, submitting pull requests or patches, and other
|
6
|
+
activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, or religion.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include the use of sexual
|
14
|
+
language or imagery, derogatory comments or personal attacks, trolling, public
|
15
|
+
or private harassment, insults, or other unprofessional conduct.
|
16
|
+
|
17
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
18
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
19
|
+
that are not aligned to this Code of Conduct. Project maintainers who do not
|
20
|
+
follow the Code of Conduct may be removed from the project team.
|
21
|
+
|
22
|
+
This code of conduct applies both within project spaces and in public spaces
|
23
|
+
when an individual is representing the project or its community.
|
24
|
+
|
25
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
26
|
+
reported by opening an issue or contacting one or more of the project
|
27
|
+
maintainers.
|
28
|
+
|
29
|
+
This Code of Conduct is adapted from the Contributor Covenant
|
30
|
+
(http://contributor-covenant.org), version 1.1.0, available at
|
31
|
+
http://contributor-covenant.org/version/1/1/0/
|
data/minitest-spec-rails.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
gem.add_runtime_dependency 'minitest', '~> 5.0'
|
20
|
-
gem.add_runtime_dependency 'rails', '
|
20
|
+
gem.add_runtime_dependency 'rails', '>= 4.1'
|
21
21
|
gem.add_development_dependency 'appraisal'
|
22
22
|
gem.add_development_dependency 'rake'
|
23
23
|
gem.add_development_dependency 'sqlite3'
|
@@ -8,11 +8,11 @@ module ApplicationControllerTests
|
|
8
8
|
|
9
9
|
it 'works' do
|
10
10
|
get :index
|
11
|
-
response.body.must_equal 'Rendered MiniTest::Spec'
|
11
|
+
response.body.must_equal '<h1>Rendered MiniTest::Spec</h1>'
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'allows custom assertions' do
|
15
|
-
|
15
|
+
assert_select 'h1', :text => 'Rendered MiniTest::Spec'
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'can find the controller_class' do
|
@@ -38,7 +38,7 @@ module ApplicationControllerTests
|
|
38
38
|
end
|
39
39
|
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
@@ -4,16 +4,22 @@ module UsersControllerTests
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
included do
|
6
6
|
|
7
|
-
it 'works' do
|
7
|
+
it 'works' do
|
8
8
|
get :index
|
9
9
|
assert_select 'h1', "All #{User.count} Users"
|
10
10
|
end
|
11
11
|
|
12
12
|
it 'redirects' do
|
13
|
-
|
13
|
+
put_update_0
|
14
14
|
assert_redirected_to users_url
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def put_update_0
|
20
|
+
rails5? ? put(:update, :params => {:id => 0}) : put(:update, :id => 0)
|
21
|
+
end
|
22
|
+
|
17
23
|
end
|
18
24
|
end
|
19
25
|
|
@@ -12,6 +12,10 @@ module MiniTestSpecRails
|
|
12
12
|
|
13
13
|
private
|
14
14
|
|
15
|
+
def rails5?
|
16
|
+
Rails.version >= '5.0'
|
17
|
+
end
|
18
|
+
|
15
19
|
def setup_dummy_schema
|
16
20
|
ActiveRecord::Base.class_eval do
|
17
21
|
connection.instance_eval do
|
@@ -25,7 +29,7 @@ module MiniTestSpecRails
|
|
25
29
|
end
|
26
30
|
end
|
27
31
|
end
|
28
|
-
|
32
|
+
|
29
33
|
end
|
30
34
|
end
|
31
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-spec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '4.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- ".travis.yml"
|
93
93
|
- Appraisals
|
94
94
|
- CHANGELOG.md
|
95
|
+
- CODE_OF_CONDUCT.md
|
95
96
|
- Gemfile
|
96
97
|
- MIT-LICENSE
|
97
98
|
- README.md
|
@@ -160,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
161
|
version: '0'
|
161
162
|
requirements: []
|
162
163
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.4.
|
164
|
+
rubygems_version: 2.4.8
|
164
165
|
signing_key:
|
165
166
|
specification_version: 4
|
166
167
|
summary: Make Rails Use MiniTest::Spec!
|