minitest-rails 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,15 +16,15 @@ Create a new rails app without Test::Unit:
16
16
 
17
17
  rails new MyApp --skip-test-unit
18
18
 
19
- Add <tt>minitest-rails</tt> to the <tt>:test</tt> and <tt>:development</tt> groups in Isolate:
19
+ Add <tt>minitest-rails</tt> to the <tt>:test</tt> and <tt>:development</tt> groups in Gemfile:
20
20
 
21
- env :development, :test do
21
+ group :test, :development do
22
22
  gem 'minitest-rails'
23
23
  end
24
24
 
25
- Or, for the unenlightened, add <tt>minitest-rails</tt> to the <tt>:test</tt> and <tt>:development</tt> groups in Gemfile:
25
+ Or, for the truly enlightened, add <tt>minitest-rails</tt> to the <tt>:test</tt> and <tt>:development</tt> groups in Isolate:
26
26
 
27
- group :test, :development do
27
+ env :development, :test do
28
28
  gem 'minitest-rails'
29
29
  end
30
30
 
@@ -37,15 +37,21 @@ This will add the <tt>minitest_helper.rb</tt> file to the <tt>test</tt> director
37
37
  == Usage
38
38
 
39
39
  We aim to expose MiniTest with minimal changes for testing within Rails.
40
- You can either create test classes that inherit from MiniTest::Unit::TestCase or you can use the MiniTest::Spec DSL.
41
- You can generate tests when you use the standard model, controller, scaffold, and other generators:
40
+ Your test classes will inherit from MiniTest::Rails::Spec (or Model, or Controller, etc) and you can use the MiniTest::Spec DSL.
41
+ You can generate test files with the standard model, controller, scaffold, and other generators:
42
42
 
43
43
  rails generate model User
44
44
 
45
- Or, you can use the MiniTest generators directly:
46
-
47
- rails generate mini_test::model User
48
-
49
45
  And you can specify generating the tests using the MiniTest::Spec DSL on any of the generators by providing the <tt>--spec</tt> option:
50
46
 
51
47
  rails generate model User --spec
48
+
49
+ And you can specify generating the fixture for a model by providing the <tt>--fixture</tt> option:
50
+
51
+ rails generate model User --fixture
52
+
53
+ You can also set these as defaults by adding the following to the <tt>config/application.rb</tt> file:
54
+
55
+ config.generators do |g|
56
+ g.test_framework :mini_test, :spec => true, :fixture => true
57
+ end
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ Hoe.spec 'minitest-rails' do
10
10
  developer 'Mike Moore', 'mike@blowmage.com'
11
11
 
12
12
  self.summary = 'MiniTest integration for Rails 3.1.'
13
- self.description = 'Adds MiniTest as the default testing library in Rails. Also adds a bit of sanity with how tests are organized.'
13
+ self.description = 'Adds MiniTest as the default testing library in Rails.'
14
14
  self.url = 'http://blowmage.com/minitest-rails'
15
15
 
16
16
  self.history_file = "CHANGELOG.rdoc"
@@ -18,9 +18,9 @@ Hoe.spec 'minitest-rails' do
18
18
  self.testlib = :minitest
19
19
 
20
20
  extra_deps << ['minitest', '~> 2.2']
21
- extra_deps << ['railties', '= 3.1.0.rc2']
22
- extra_deps << ['activesupport', '= 3.1.0.rc2']
23
- extra_deps << ['actionpack', '= 3.1.0.rc2']
21
+ extra_deps << ['railties', '~> 3.1.0.rc1']
22
+ extra_deps << ['activesupport', '~> 3.1.0.rc1']
23
+ extra_deps << ['actionpack', '~> 3.1.0.rc1']
24
24
  end
25
25
 
26
26
  # vim: syntax=ruby
@@ -2,10 +2,10 @@ require "rails"
2
2
 
3
3
  module MiniTest
4
4
  module Rails
5
- VERSION = "0.0.4"
5
+ VERSION = "0.0.5"
6
6
  class Railtie < ::Rails::Railtie
7
- config.app_generators.integration_tool :mini_test
8
- config.app_generators.test_framework :mini_test, :fixture => false
7
+ # config.app_generators.integration_tool :mini_test
8
+ config.app_generators.test_framework :mini_test
9
9
  config.app_generators.fallbacks[:mini_test] = :test_unit
10
10
 
11
11
  rake_tasks do
@@ -1,6 +1,6 @@
1
1
  require 'rake/testtask'
2
2
 
3
- MINITEST_TASKS = %w(models controllers views helpers mailers integration)
3
+ MINITEST_TASKS = %w(models controllers helpers mailers) #views integration
4
4
 
5
5
  desc 'Runs all tests'
6
6
  task :test do
metadata CHANGED
@@ -1,103 +1,80 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: minitest-rails
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.5
4
5
  prerelease:
5
- version: 0.0.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Mike Moore
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain:
12
- - |
13
- -----BEGIN CERTIFICATE-----
14
- MIIDMDCCAhigAwIBAgIBADANBgkqhkiG9w0BAQUFADA+MQ0wCwYDVQQDDARtaWtl
15
- MRgwFgYKCZImiZPyLGQBGRYIYmxvd21hZ2UxEzARBgoJkiaJk/IsZAEZFgNjb20w
16
- HhcNMTEwNTI1MTc0NTM0WhcNMTIwNTI0MTc0NTM0WjA+MQ0wCwYDVQQDDARtaWtl
17
- MRgwFgYKCZImiZPyLGQBGRYIYmxvd21hZ2UxEzARBgoJkiaJk/IsZAEZFgNjb20w
18
- ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzcrfQPtLyKWT6aQh/xe8H
19
- kTg/7CnSbEpaS9vCSk1Sivkomd/6ZUAyuJu47qx5qEYGih8HJ4odSUUfAcnSCK4v
20
- C5dSz2WO9GugsMT1Enmc2rNr/foH3ihTiQKYm24ksQMo9qYdQSNDTusyr6IfIm1x
21
- 4JLYK9Nkky/KYDlnYFjLGWr92D2quBqlk5Lf8KyNYhe1ykG1tpWCeJtwY043EunL
22
- +LBs69xeL7Mk+rkgxS4UkR+R7h1HLwkOcAgqxlDJw3lxWqFJown0T4nIawRXHLeH
23
- hbXz+edekLA96iVJrzE3JDkY/07PHoTY7RGKZh0FJmlxK+RgVPNMzTAZK6RyFpiP
24
- AgMBAAGjOTA3MAkGA1UdEwQCMAAwHQYDVR0OBBYEFB09+3va7jnAxjJOMEGYXRbw
25
- IZoZMAsGA1UdDwQEAwIEsDANBgkqhkiG9w0BAQUFAAOCAQEAo3zBi7vXNn5UiUnD
26
- e1Bsmlf9H5vNPSgIffBRVL7T9YTJ8oFb+7sfOMFxM1Qfj9Csw7ti77uGA3l9GbmP
27
- Gz8Uk64Idx5TTLFIXdLlPJzdp8u1WVV3l0EpxjBdN8X/x2O99tVc0v9Rt4YnApW8
28
- TCnsFspoxzqwsb/FR1KLN6Od/8FbobQ3Gh5so2NowcHBS3V2o5TSvaT3WEhAS47b
29
- 6P6VWyY3ho84Do5T6/ZkgvHlX4BsuImBES/V3bW+LXdi7zSDVjKHM7FZyg1Acw+j
30
- zRZSumJnIayMxShpnMge5/538xI1nbpa2wr1nJVctw+q6GrOQ+AruFsBM7/NfK/M
31
- sgxAiQ==
32
- -----END CERTIFICATE-----
33
-
34
- date: 2011-06-08 00:00:00 Z
35
- dependencies:
36
- - !ruby/object:Gem::Dependency
11
+ cert_chain: []
12
+ date: 2011-06-22 00:00:00.000000000 -06:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
37
16
  name: minitest
38
- prerelease: false
39
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2156686680 !ruby/object:Gem::Requirement
40
18
  none: false
41
- requirements:
19
+ requirements:
42
20
  - - ~>
43
- - !ruby/object:Gem::Version
44
- version: "2.2"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.2'
45
23
  type: :runtime
46
- version_requirements: *id001
47
- - !ruby/object:Gem::Dependency
48
- name: railties
49
24
  prerelease: false
50
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2156686680
26
+ - !ruby/object:Gem::Dependency
27
+ name: railties
28
+ requirement: &2156686020 !ruby/object:Gem::Requirement
51
29
  none: false
52
- requirements:
53
- - - "="
54
- - !ruby/object:Gem::Version
55
- version: 3.1.0.rc2
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.0.rc1
56
34
  type: :runtime
57
- version_requirements: *id002
58
- - !ruby/object:Gem::Dependency
59
- name: activesupport
60
35
  prerelease: false
61
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2156686020
37
+ - !ruby/object:Gem::Dependency
38
+ name: activesupport
39
+ requirement: &2156678320 !ruby/object:Gem::Requirement
62
40
  none: false
63
- requirements:
64
- - - "="
65
- - !ruby/object:Gem::Version
66
- version: 3.1.0.rc2
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: 3.1.0.rc1
67
45
  type: :runtime
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: actionpack
71
46
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *2156678320
48
+ - !ruby/object:Gem::Dependency
49
+ name: actionpack
50
+ requirement: &2156677900 !ruby/object:Gem::Requirement
73
51
  none: false
74
- requirements:
75
- - - "="
76
- - !ruby/object:Gem::Version
77
- version: 3.1.0.rc2
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 3.1.0.rc1
78
56
  type: :runtime
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: hoe
82
57
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *2156677900
59
+ - !ruby/object:Gem::Dependency
60
+ name: hoe
61
+ requirement: &2156677420 !ruby/object:Gem::Requirement
84
62
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: 2.9.4
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ version: 2.9.5
89
67
  type: :development
90
- version_requirements: *id005
91
- description: Adds MiniTest as the default testing library in Rails. Also adds a bit of sanity with how tests are organized.
92
- email:
68
+ prerelease: false
69
+ version_requirements: *2156677420
70
+ description: Adds MiniTest as the default testing library in Rails.
71
+ email:
93
72
  - mike@blowmage.com
94
73
  executables: []
95
-
96
74
  extensions: []
97
-
98
- extra_rdoc_files:
75
+ extra_rdoc_files:
99
76
  - Manifest.txt
100
- files:
77
+ files:
101
78
  - .autotest
102
79
  - CHANGELOG.rdoc
103
80
  - Manifest.txt
@@ -138,35 +115,34 @@ files:
138
115
  - test/test_model_generator.rb
139
116
  - test/test_scaffold_generator.rb
140
117
  - .gemtest
118
+ has_rdoc: true
141
119
  homepage: http://blowmage.com/minitest-rails
142
120
  licenses: []
143
-
144
121
  post_install_message:
145
- rdoc_options:
122
+ rdoc_options:
146
123
  - --main
147
124
  - README.rdoc
148
- require_paths:
125
+ require_paths:
149
126
  - lib
150
- required_ruby_version: !ruby/object:Gem::Requirement
127
+ required_ruby_version: !ruby/object:Gem::Requirement
151
128
  none: false
152
- requirements:
153
- - - ">="
154
- - !ruby/object:Gem::Version
155
- version: "0"
156
- required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
134
  none: false
158
- requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- version: "0"
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
162
139
  requirements: []
163
-
164
140
  rubyforge_project: minitest-rails
165
- rubygems_version: 1.8.5
141
+ rubygems_version: 1.6.2
166
142
  signing_key:
167
143
  specification_version: 3
168
144
  summary: MiniTest integration for Rails 3.1.
169
- test_files:
145
+ test_files:
170
146
  - test/test_controller_generator.rb
171
147
  - test/test_helper_generator.rb
172
148
  - test/test_install_generator.rb
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- B��Q����e�n�'2d��aX��3�ȼ�_�7�x���z��A&R����T�3�,�ݧm��G��e�g
2
- ��Ӈ�P�c�R�˖�g�!��$���Iwsi���3�vk ~�����=��Y��_��3�7
3
- �5_#\