minitest-spec-rails 5.2.2 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 342a48e3db12a8cab6201515dbb13fede213619f
4
- data.tar.gz: 77c97a7bc152f267a4a112cca7c6d5219f7bd70e
3
+ metadata.gz: 045cc96d9f967df6f7fac7bb50618b82db091bd7
4
+ data.tar.gz: 3ca64aeb8318e5492e3711e5cc2292a873a0a766
5
5
  SHA512:
6
- metadata.gz: b1c5569edae61252ea18748398bd20b8d2518475972566f60370f8f99d9567181a34602b61098bed7617b800944e4048b91ff464670732d95eb024b3fbb54a37
7
- data.tar.gz: 2d207c12753bbcd49cef976b743cfa279ef8890cab9580fc4a14b2e306996eebd0fb48702b62cbfcb833c1d174a2b4081c9e25584883606f5842fd358a82e675
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.rc3'
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
@@ -1,4 +1,8 @@
1
1
 
2
+ ## 5.3.0
3
+
4
+ * Allow Rails 4.1 to new 5.x to be supported.
5
+
2
6
  ## 5.2.2
3
7
 
4
8
  * Fix ActiveJob support for `described_class`. Thanks @pschambacher.
@@ -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/
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = "5.2.2"
2
+ VERSION = "5.3.0"
3
3
  end
@@ -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', '~> 4.1'
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'
@@ -1,5 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
+ if defined?(ActiveJob)
3
4
  class MyJob < ActiveJob::Base ; def perform(record) ; true ; end end
4
5
  class TrashableCleanupJob < MyJob ; end
5
6
 
@@ -40,3 +41,4 @@ class ActiveJobTest < MiniTestSpecRails::TestCase
40
41
  end
41
42
 
42
43
  end
44
+ end
@@ -1,7 +1,7 @@
1
1
  class ApplicationController < ActionController::Base
2
2
 
3
3
  def index
4
- render :text => 'Rendered MiniTest::Spec', :layout => false
4
+ render :html => '<h1>Rendered MiniTest::Spec</h1>'.html_safe, :layout => false
5
5
  end
6
6
 
7
7
  end
@@ -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
- assert_template :partial => false
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
- put :update, :id => 0
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.2.2
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-05-25 00:00:00.000000000 Z
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.6
164
+ rubygems_version: 2.4.8
164
165
  signing_key:
165
166
  specification_version: 4
166
167
  summary: Make Rails Use MiniTest::Spec!