minitest-spec-rails 5.3.0 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 045cc96d9f967df6f7fac7bb50618b82db091bd7
4
- data.tar.gz: 3ca64aeb8318e5492e3711e5cc2292a873a0a766
3
+ metadata.gz: 3cf00434a022b6586ca8fafb0f4ddbf1f644179e
4
+ data.tar.gz: c8f5bb3ccf88fe95f6494fb7db61288c8141953e
5
5
  SHA512:
6
- metadata.gz: c0b0650216416c4acad80070880971ad169e3b3d99d6cfd42a57bd778ce56366760ac73b6b1cf448559cab4282be857e3fa2f877920191a1b830beac0e2b2b78
7
- data.tar.gz: 6f30fba8c469b32a4262ec5e3ad0f11192de9f6fa97ed357a06ca773932dce4093c2d12d9fc93b9202f64fd63198a33b87ae94accc07070c9a3f3c684d362e1c
6
+ metadata.gz: 5c97a7deaa1a0ba8f6f68c15928f3c47b63ed3171690c4a33565a9e9656457024ba8fdb8643a7e703e9f02a0a3e4ff669ff82ef23f6e1b88f5de13f18bb09d9b
7
+ data.tar.gz: 1f90656cfadd650e316fe7d9e443f2e79c1aabffb5a82a75c1e6cb461dde8e502af46bad9e9ec96d84540e8a09ab55b5b4adf445a64ab9a0d982a88e18c996c7
data/.gitignore CHANGED
@@ -1,7 +1,6 @@
1
1
  *.gem
2
2
  .bundle
3
3
  .ruby-version
4
- gemfiles/*
5
4
  Gemfile.lock
6
5
  pkg/*
7
- *.log
6
+ *.log
@@ -1,14 +1,22 @@
1
1
  sudo: false
2
2
  cache: bundler
3
3
  rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.1
4
+ - 2.0
5
+ - 2.1
6
+ - 2.2.3
7
+ gemfile:
8
+ - gemfiles/rails41.gemfile
9
+ - gemfiles/rails42.gemfile
10
+ - gemfiles/rails50.gemfile
7
11
  install:
8
12
  - gem install bundler
9
13
  - bundle --version
10
14
  - bundle install
11
- before_script:
12
- - bundle exec appraisal update
13
15
  script:
14
- - bundle exec appraisal rake test
16
+ - bundle exec rake test
17
+ matrix:
18
+ exclude:
19
+ - rvm: 2.0
20
+ gemfile: gemfiles/rails50.gemfile
21
+ - rvm: 2.1
22
+ gemfile: gemfiles/rails50.gemfile
data/Appraisals CHANGED
@@ -8,10 +8,5 @@ appraise 'rails42' do
8
8
  end
9
9
 
10
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'
11
+ gem 'rails', '5.0.0.rc1'
17
12
  end
@@ -1,3 +1,6 @@
1
+ ## 5.3.1
2
+
3
+ * Use ENV['RAILS_ENV'] for initializer guards vs memo'ed Rails.env. Fixes #72.
1
4
 
2
5
  ## 5.3.0
3
6
 
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.1.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ minitest-spec-rails (5.4.0)
5
+ minitest (~> 5.0)
6
+ rails (>= 4.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.1.15)
12
+ actionpack (= 4.1.15)
13
+ actionview (= 4.1.15)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ actionpack (4.1.15)
16
+ actionview (= 4.1.15)
17
+ activesupport (= 4.1.15)
18
+ rack (~> 1.5.2)
19
+ rack-test (~> 0.6.2)
20
+ actionview (4.1.15)
21
+ activesupport (= 4.1.15)
22
+ builder (~> 3.1)
23
+ erubis (~> 2.7.0)
24
+ activemodel (4.1.15)
25
+ activesupport (= 4.1.15)
26
+ builder (~> 3.1)
27
+ activerecord (4.1.15)
28
+ activemodel (= 4.1.15)
29
+ activesupport (= 4.1.15)
30
+ arel (~> 5.0.0)
31
+ activesupport (4.1.15)
32
+ i18n (~> 0.6, >= 0.6.9)
33
+ json (~> 1.7, >= 1.7.7)
34
+ minitest (~> 5.1)
35
+ thread_safe (~> 0.1)
36
+ tzinfo (~> 1.1)
37
+ appraisal (2.1.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ arel (5.0.1.20140414130214)
42
+ builder (3.2.2)
43
+ concurrent-ruby (1.0.2)
44
+ erubis (2.7.0)
45
+ i18n (0.7.0)
46
+ json (1.8.3)
47
+ mail (2.6.4)
48
+ mime-types (>= 1.16, < 4)
49
+ mime-types (3.1)
50
+ mime-types-data (~> 3.2015)
51
+ mime-types-data (3.2016.0521)
52
+ minitest (5.9.0)
53
+ rack (1.5.5)
54
+ rack-test (0.6.3)
55
+ rack (>= 1.0)
56
+ rails (4.1.15)
57
+ actionmailer (= 4.1.15)
58
+ actionpack (= 4.1.15)
59
+ actionview (= 4.1.15)
60
+ activemodel (= 4.1.15)
61
+ activerecord (= 4.1.15)
62
+ activesupport (= 4.1.15)
63
+ bundler (>= 1.3.0, < 2.0)
64
+ railties (= 4.1.15)
65
+ sprockets-rails (~> 2.0)
66
+ railties (4.1.15)
67
+ actionpack (= 4.1.15)
68
+ activesupport (= 4.1.15)
69
+ rake (>= 0.8.7)
70
+ thor (>= 0.18.1, < 2.0)
71
+ rake (11.2.2)
72
+ sprockets (3.6.0)
73
+ concurrent-ruby (~> 1.0)
74
+ rack (> 1, < 3)
75
+ sprockets-rails (2.3.3)
76
+ actionpack (>= 3.0)
77
+ activesupport (>= 3.0)
78
+ sprockets (>= 2.8, < 4.0)
79
+ sqlite3 (1.3.11)
80
+ thor (0.19.1)
81
+ thread_safe (0.3.5)
82
+ tzinfo (1.2.2)
83
+ thread_safe (~> 0.1)
84
+
85
+ PLATFORMS
86
+ ruby
87
+
88
+ DEPENDENCIES
89
+ appraisal
90
+ minitest-spec-rails!
91
+ rails (~> 4.1.0)
92
+ rake
93
+ sqlite3
94
+
95
+ BUNDLED WITH
96
+ 1.12.4
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4.2.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,123 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ minitest-spec-rails (5.4.0)
5
+ minitest (~> 5.0)
6
+ rails (>= 4.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.2.6)
12
+ actionpack (= 4.2.6)
13
+ actionview (= 4.2.6)
14
+ activejob (= 4.2.6)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ rails-dom-testing (~> 1.0, >= 1.0.5)
17
+ actionpack (4.2.6)
18
+ actionview (= 4.2.6)
19
+ activesupport (= 4.2.6)
20
+ rack (~> 1.6)
21
+ rack-test (~> 0.6.2)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (4.2.6)
25
+ activesupport (= 4.2.6)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ activejob (4.2.6)
31
+ activesupport (= 4.2.6)
32
+ globalid (>= 0.3.0)
33
+ activemodel (4.2.6)
34
+ activesupport (= 4.2.6)
35
+ builder (~> 3.1)
36
+ activerecord (4.2.6)
37
+ activemodel (= 4.2.6)
38
+ activesupport (= 4.2.6)
39
+ arel (~> 6.0)
40
+ activesupport (4.2.6)
41
+ i18n (~> 0.7)
42
+ json (~> 1.7, >= 1.7.7)
43
+ minitest (~> 5.1)
44
+ thread_safe (~> 0.3, >= 0.3.4)
45
+ tzinfo (~> 1.1)
46
+ appraisal (2.1.0)
47
+ bundler
48
+ rake
49
+ thor (>= 0.14.0)
50
+ arel (6.0.3)
51
+ builder (3.2.2)
52
+ concurrent-ruby (1.0.2)
53
+ erubis (2.7.0)
54
+ globalid (0.3.6)
55
+ activesupport (>= 4.1.0)
56
+ i18n (0.7.0)
57
+ json (1.8.3)
58
+ loofah (2.0.3)
59
+ nokogiri (>= 1.5.9)
60
+ mail (2.6.4)
61
+ mime-types (>= 1.16, < 4)
62
+ mime-types (3.1)
63
+ mime-types-data (~> 3.2015)
64
+ mime-types-data (3.2016.0521)
65
+ mini_portile2 (2.1.0)
66
+ minitest (5.9.0)
67
+ nokogiri (1.6.8)
68
+ mini_portile2 (~> 2.1.0)
69
+ pkg-config (~> 1.1.7)
70
+ pkg-config (1.1.7)
71
+ rack (1.6.4)
72
+ rack-test (0.6.3)
73
+ rack (>= 1.0)
74
+ rails (4.2.6)
75
+ actionmailer (= 4.2.6)
76
+ actionpack (= 4.2.6)
77
+ actionview (= 4.2.6)
78
+ activejob (= 4.2.6)
79
+ activemodel (= 4.2.6)
80
+ activerecord (= 4.2.6)
81
+ activesupport (= 4.2.6)
82
+ bundler (>= 1.3.0, < 2.0)
83
+ railties (= 4.2.6)
84
+ sprockets-rails
85
+ rails-deprecated_sanitizer (1.0.3)
86
+ activesupport (>= 4.2.0.alpha)
87
+ rails-dom-testing (1.0.7)
88
+ activesupport (>= 4.2.0.beta, < 5.0)
89
+ nokogiri (~> 1.6.0)
90
+ rails-deprecated_sanitizer (>= 1.0.1)
91
+ rails-html-sanitizer (1.0.3)
92
+ loofah (~> 2.0)
93
+ railties (4.2.6)
94
+ actionpack (= 4.2.6)
95
+ activesupport (= 4.2.6)
96
+ rake (>= 0.8.7)
97
+ thor (>= 0.18.1, < 2.0)
98
+ rake (11.2.2)
99
+ sprockets (3.6.0)
100
+ concurrent-ruby (~> 1.0)
101
+ rack (> 1, < 3)
102
+ sprockets-rails (3.0.4)
103
+ actionpack (>= 4.0)
104
+ activesupport (>= 4.0)
105
+ sprockets (>= 3.0.0)
106
+ sqlite3 (1.3.11)
107
+ thor (0.19.1)
108
+ thread_safe (0.3.5)
109
+ tzinfo (1.2.2)
110
+ thread_safe (~> 0.1)
111
+
112
+ PLATFORMS
113
+ ruby
114
+
115
+ DEPENDENCIES
116
+ appraisal
117
+ minitest-spec-rails!
118
+ rails (~> 4.2.0)
119
+ rake
120
+ sqlite3
121
+
122
+ BUNDLED WITH
123
+ 1.12.4
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5.0.0.rc1"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,133 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ minitest-spec-rails (5.4.0)
5
+ minitest (~> 5.0)
6
+ rails (>= 4.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.0.0.rc1)
12
+ actionpack (= 5.0.0.rc1)
13
+ nio4r (~> 1.2)
14
+ websocket-driver (~> 0.6.1)
15
+ actionmailer (5.0.0.rc1)
16
+ actionpack (= 5.0.0.rc1)
17
+ actionview (= 5.0.0.rc1)
18
+ activejob (= 5.0.0.rc1)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 1.0, >= 1.0.5)
21
+ actionpack (5.0.0.rc1)
22
+ actionview (= 5.0.0.rc1)
23
+ activesupport (= 5.0.0.rc1)
24
+ rack (~> 2.x)
25
+ rack-test (~> 0.6.3)
26
+ rails-dom-testing (~> 1.0, >= 1.0.5)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.0.0.rc1)
29
+ activesupport (= 5.0.0.rc1)
30
+ builder (~> 3.1)
31
+ erubis (~> 2.7.0)
32
+ rails-dom-testing (~> 1.0, >= 1.0.5)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
34
+ activejob (5.0.0.rc1)
35
+ activesupport (= 5.0.0.rc1)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.0.0.rc1)
38
+ activesupport (= 5.0.0.rc1)
39
+ activerecord (5.0.0.rc1)
40
+ activemodel (= 5.0.0.rc1)
41
+ activesupport (= 5.0.0.rc1)
42
+ arel (~> 7.0)
43
+ activesupport (5.0.0.rc1)
44
+ concurrent-ruby (~> 1.0, >= 1.0.2)
45
+ i18n (~> 0.7)
46
+ minitest (~> 5.1)
47
+ tzinfo (~> 1.1)
48
+ appraisal (2.1.0)
49
+ bundler
50
+ rake
51
+ thor (>= 0.14.0)
52
+ arel (7.0.0)
53
+ builder (3.2.2)
54
+ concurrent-ruby (1.0.2)
55
+ erubis (2.7.0)
56
+ globalid (0.3.6)
57
+ activesupport (>= 4.1.0)
58
+ i18n (0.7.0)
59
+ json (1.8.3)
60
+ loofah (2.0.3)
61
+ nokogiri (>= 1.5.9)
62
+ mail (2.6.4)
63
+ mime-types (>= 1.16, < 4)
64
+ method_source (0.8.2)
65
+ mime-types (3.1)
66
+ mime-types-data (~> 3.2015)
67
+ mime-types-data (3.2016.0521)
68
+ mini_portile2 (2.1.0)
69
+ minitest (5.9.0)
70
+ nio4r (1.2.1)
71
+ nokogiri (1.6.8)
72
+ mini_portile2 (~> 2.1.0)
73
+ pkg-config (~> 1.1.7)
74
+ pkg-config (1.1.7)
75
+ rack (2.0.0.rc1)
76
+ json
77
+ rack-test (0.6.3)
78
+ rack (>= 1.0)
79
+ rails (5.0.0.rc1)
80
+ actioncable (= 5.0.0.rc1)
81
+ actionmailer (= 5.0.0.rc1)
82
+ actionpack (= 5.0.0.rc1)
83
+ actionview (= 5.0.0.rc1)
84
+ activejob (= 5.0.0.rc1)
85
+ activemodel (= 5.0.0.rc1)
86
+ activerecord (= 5.0.0.rc1)
87
+ activesupport (= 5.0.0.rc1)
88
+ bundler (>= 1.3.0, < 2.0)
89
+ railties (= 5.0.0.rc1)
90
+ sprockets-rails (>= 2.0.0)
91
+ rails-deprecated_sanitizer (1.0.3)
92
+ activesupport (>= 4.2.0.alpha)
93
+ rails-dom-testing (1.0.7)
94
+ activesupport (>= 4.2.0.beta, < 5.0)
95
+ nokogiri (~> 1.6.0)
96
+ rails-deprecated_sanitizer (>= 1.0.1)
97
+ rails-html-sanitizer (1.0.3)
98
+ loofah (~> 2.0)
99
+ railties (5.0.0.rc1)
100
+ actionpack (= 5.0.0.rc1)
101
+ activesupport (= 5.0.0.rc1)
102
+ method_source
103
+ rake (>= 0.8.7)
104
+ thor (>= 0.18.1, < 2.0)
105
+ rake (11.2.2)
106
+ sprockets (3.6.0)
107
+ concurrent-ruby (~> 1.0)
108
+ rack (> 1, < 3)
109
+ sprockets-rails (3.0.4)
110
+ actionpack (>= 4.0)
111
+ activesupport (>= 4.0)
112
+ sprockets (>= 3.0.0)
113
+ sqlite3 (1.3.11)
114
+ thor (0.19.1)
115
+ thread_safe (0.3.5)
116
+ tzinfo (1.2.2)
117
+ thread_safe (~> 0.1)
118
+ websocket-driver (0.6.4)
119
+ websocket-extensions (>= 0.1.0)
120
+ websocket-extensions (0.1.2)
121
+
122
+ PLATFORMS
123
+ ruby
124
+
125
+ DEPENDENCIES
126
+ appraisal
127
+ minitest-spec-rails!
128
+ rails (= 5.0.0.rc1)
129
+ rake
130
+ sqlite3
131
+
132
+ BUNDLED WITH
133
+ 1.12.4
@@ -17,15 +17,15 @@ module MiniTestSpecRails
17
17
  ActiveSupport.on_load(:active_job) do
18
18
  require 'minitest-spec-rails/init/active_job'
19
19
  end
20
- end if Rails.env.test?
20
+ end if ENV['RAILS_ENV'] == 'test'
21
21
 
22
22
  initializer 'minitest-spec-rails.action_view', :after => 'action_view.setup_action_pack', :group => :all do |app|
23
23
  require 'minitest-spec-rails/init/action_view'
24
- end if Rails.env.test?
24
+ end if ENV['RAILS_ENV'] == 'test'
25
25
 
26
26
  initializer 'minitest-spec-rails.mini_shoulda', :group => :all do |app|
27
27
  require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda
28
- end if Rails.env.test?
28
+ end if ENV['RAILS_ENV'] == 'test'
29
29
 
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = "5.3.0"
2
+ VERSION = "5.4.0"
3
3
  end
@@ -0,0 +1,12 @@
1
+ require 'test_helper_dummy'
2
+
3
+ class SpecialUsersControllerTest < ActionController::TestCase
4
+
5
+ tests UsersController
6
+
7
+ it 'works' do
8
+ get :index
9
+ assert_select 'h1', "All #{User.count} Users"
10
+ end
11
+
12
+ end
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.3.0
4
+ version: 5.4.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-09-07 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -97,6 +97,12 @@ files:
97
97
  - MIT-LICENSE
98
98
  - README.md
99
99
  - Rakefile
100
+ - gemfiles/rails41.gemfile
101
+ - gemfiles/rails41.gemfile.lock
102
+ - gemfiles/rails42.gemfile
103
+ - gemfiles/rails42.gemfile.lock
104
+ - gemfiles/rails50.gemfile
105
+ - gemfiles/rails50.gemfile.lock
100
106
  - lib/minitest-spec-rails.rb
101
107
  - lib/minitest-spec-rails/dsl.rb
102
108
  - lib/minitest-spec-rails/init/action_controller.rb
@@ -134,6 +140,7 @@ files:
134
140
  - test/dummy_tests/foos_helper_test.rb
135
141
  - test/dummy_tests/integration_test.rb
136
142
  - test/dummy_tests/library_test.rb
143
+ - test/dummy_tests/special_users_controller_test.rb
137
144
  - test/dummy_tests/user_mailer_test.rb
138
145
  - test/dummy_tests/user_test.rb
139
146
  - test/dummy_tests/users_controller_test.rb
@@ -161,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
168
  version: '0'
162
169
  requirements: []
163
170
  rubyforge_project:
164
- rubygems_version: 2.4.8
171
+ rubygems_version: 2.4.5.1
165
172
  signing_key:
166
173
  specification_version: 4
167
174
  summary: Make Rails Use MiniTest::Spec!
@@ -191,6 +198,7 @@ test_files:
191
198
  - test/dummy_tests/foos_helper_test.rb
192
199
  - test/dummy_tests/integration_test.rb
193
200
  - test/dummy_tests/library_test.rb
201
+ - test/dummy_tests/special_users_controller_test.rb
194
202
  - test/dummy_tests/user_mailer_test.rb
195
203
  - test/dummy_tests/user_test.rb
196
204
  - test/dummy_tests/users_controller_test.rb