minitest-spec-rails 4.7.9 → 4.7.10

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: 27eb41307b44a18e8a9aefa7eb22682fb1f51049
4
- data.tar.gz: 85b22c11328343b2c12dce99d386b7369a47b7b1
3
+ metadata.gz: b3d627942d27cc0d603cb59fdf9a44766a67a579
4
+ data.tar.gz: 2c57db40df31306afac14493b058531378980344
5
5
  SHA512:
6
- metadata.gz: 778b0f844adb3ba93a0d3fd5d97bc2420c6d68419fe6306079cf148edf29a0921a0dde1ad662c9ade14b801268aa9b6d9622871c620d6f80d9600ae4c4f7b131
7
- data.tar.gz: ec3a59946212cfb42b2bc58d7ed37bbb1a4c3adc59830b9d77aab826dad28bd449912b628e2521560e651944d9ed85b0f1deb021befee5e35526fb938f1e605a
6
+ metadata.gz: 3a692ba0438c59aca6fb2f24b4b6dee67fb465ac785e2a5b7fd1634d4ab6171e07cd9d14a9075fc5f8b1dbddb16accbdb424543613ec08fd7067d0c0501f47c7
7
+ data.tar.gz: cc38e89e620d6c1e858f1d85f4f2c79ae48debf7f1d2f1af18383eef542752a10dbd7c73d80553c6d3c19c2cd4ca909948b646b07f33e5db90dbd2a72a721364
data/.travis.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  rvm:
2
- - 1.9.3
3
2
  - 2.0.0
4
3
  - 2.1.1
5
4
  install:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 4.7.10
2
+
3
+ * Fix usage of `tests` in controllers. Fixes #71
4
+
1
5
  ## 4.7.9
2
6
 
3
7
  * Fix Rails 3.0 and 3.1 not setting up controller tests. Thanks @hmadison.
data/Rakefile CHANGED
@@ -6,6 +6,7 @@ Rake::TestTask.new do |t|
6
6
  t.libs = ['lib','test']
7
7
  t.test_files = Dir.glob("test/**/*_test.rb").sort
8
8
  t.verbose = true
9
+ t.warning = false
9
10
  end
10
11
 
11
12
  task :default => :test
@@ -15,9 +15,9 @@ module MiniTestSpecRails
15
15
 
16
16
  def setup_controller_request_and_response
17
17
  if Util.rails30? || Util.rails31?
18
- self.class.tests described_class
18
+ self.class.tests described_class if described_class
19
19
  else
20
- describing_class.tests described_class
20
+ describing_class.tests described_class if described_class
21
21
  end
22
22
  super
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = "4.7.9"
2
+ VERSION = "4.7.10"
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: 4.7.9
4
+ version: 4.7.10
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-22 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -167,6 +167,7 @@ files:
167
167
  - test/dummy_tests/foo_helper_test.rb
168
168
  - test/dummy_tests/integration_test.rb
169
169
  - test/dummy_tests/library_test.rb
170
+ - test/dummy_tests/special_users_controller_test.rb
170
171
  - test/dummy_tests/user_mailer_test.rb
171
172
  - test/dummy_tests/user_test.rb
172
173
  - test/dummy_tests/users_controller_test.rb
@@ -224,6 +225,7 @@ test_files:
224
225
  - test/dummy_tests/foo_helper_test.rb
225
226
  - test/dummy_tests/integration_test.rb
226
227
  - test/dummy_tests/library_test.rb
228
+ - test/dummy_tests/special_users_controller_test.rb
227
229
  - test/dummy_tests/user_mailer_test.rb
228
230
  - test/dummy_tests/user_test.rb
229
231
  - test/dummy_tests/users_controller_test.rb