minitest-spec-rails 3.0.7 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.travis.yml +7 -0
- data/CHANGELOG.md +46 -0
- data/Gemfile +3 -1
- data/Guardfile +7 -0
- data/README.md +195 -41
- data/Rakefile +4 -6
- data/lib/minitest-spec-rails.rb +8 -2
- data/lib/minitest-spec-rails/dsl.rb +52 -0
- data/lib/minitest-spec-rails/init/action_controller.rb +24 -0
- data/lib/minitest-spec-rails/init/action_dispatch.rb +17 -0
- data/lib/minitest-spec-rails/init/action_mailer.rb +26 -0
- data/lib/minitest-spec-rails/init/action_view.rb +38 -0
- data/lib/minitest-spec-rails/init/active_support.rb +28 -0
- data/lib/minitest-spec-rails/init/mini_shoulda.rb +47 -0
- data/lib/minitest-spec-rails/rails.rb +7 -0
- data/lib/minitest-spec-rails/version.rb +1 -1
- data/minitest-spec-rails.gemspec +21 -16
- data/test/cases/action_controller_test.rb +41 -0
- data/test/cases/action_dispatch_test.rb +48 -0
- data/test/cases/action_mailer_test.rb +42 -0
- data/test/cases/action_view_test.rb +44 -0
- data/test/cases/active_support_test.rb +43 -0
- data/test/cases/mini_shoulda_test.rb +38 -0
- data/test/dummy_app/app/controllers/application_controller.rb +7 -0
- data/test/dummy_app/app/controllers/users_controller.rb +8 -0
- data/test/dummy_app/app/helpers/application_helper.rb +2 -0
- data/test/dummy_app/app/helpers/foos_helper.rb +5 -0
- data/test/dummy_app/app/helpers/users_helper.rb +9 -0
- data/test/dummy_app/app/models/post.rb +6 -0
- data/test/dummy_app/app/models/user.rb +6 -0
- data/test/dummy_app/app/models/user_mailer.rb +10 -0
- data/test/dummy_app/app/views/user_mailer/welcome.erb +1 -0
- data/test/dummy_app/app/views/users/index.rhtml +2 -0
- data/test/dummy_app/config/boot.rb +126 -0
- data/test/dummy_app/config/database.yml +3 -0
- data/test/dummy_app/config/environment.rb +12 -0
- data/test/dummy_app/config/environments/test.rb +28 -0
- data/test/dummy_app/config/initializers/new_rails_defaults.rb +15 -0
- data/test/dummy_app/config/routes.rb +6 -0
- data/test/dummy_app/db/schema.rb +0 -0
- data/test/dummy_app/init.rb +13 -0
- data/test/dummy_app/log/.keep +0 -0
- data/test/dummy_app/public/.htaccess +40 -0
- data/test/dummy_app/public/404.html +30 -0
- data/test/dummy_app/public/422.html +30 -0
- data/test/dummy_app/public/500.html +30 -0
- data/test/dummy_app/script/console +3 -0
- data/test/dummy_app/script/generate +3 -0
- data/test/dummy_tests/application_controller_test.rb +93 -0
- data/test/dummy_tests/foo_helper_test.rb +12 -0
- data/test/dummy_tests/integration_test.rb +30 -0
- data/test/dummy_tests/user_mailer_test.rb +91 -0
- data/test/dummy_tests/user_test.rb +72 -0
- data/test/dummy_tests/users_controller_test.rb +23 -0
- data/test/dummy_tests/users_helper_test.rb +81 -0
- data/test/support/minitest.rb +7 -0
- data/test/support/shared_test_case_behavior.rb +30 -0
- data/test/test_helper.rb +12 -0
- data/test/test_helper_dummy.rb +8 -0
- metadata +238 -63
- data/lib/minitest-spec-rails/test_case.rb +0 -33
- data/lib/test/unit.rb +0 -9
- data/lib/test/unit/assertions.rb +0 -7
- data/lib/test/unit/testcase.rb +0 -23
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'test_helper_dummy'
|
2
|
+
|
3
|
+
module IntegrationTests
|
4
|
+
def self.included(klass)
|
5
|
+
klass.class_eval do
|
6
|
+
|
7
|
+
it 'works' do
|
8
|
+
get root_path
|
9
|
+
status.must_equal 200
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'nested 1' do
|
13
|
+
|
14
|
+
it('works') { skip }
|
15
|
+
|
16
|
+
describe 'nested 2' do
|
17
|
+
|
18
|
+
it('works') { skip }
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class IntegrationTest < ActionController::IntegrationTest
|
29
|
+
include IntegrationTests
|
30
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
require 'test_helper_dummy'
|
2
|
+
|
3
|
+
module UserMailerTests
|
4
|
+
def self.included(klass)
|
5
|
+
klass.class_eval do
|
6
|
+
|
7
|
+
tests UserMailer
|
8
|
+
|
9
|
+
let(:deliveries) { ActionMailer::Base.deliveries }
|
10
|
+
let(:user_mailer_class) { UserMailer }
|
11
|
+
let(:user_email) { user_mailer_class.deliver_welcome(user_ken) }
|
12
|
+
|
13
|
+
it 'works' do
|
14
|
+
deliveries.must_be :empty?
|
15
|
+
user_email
|
16
|
+
deliveries.wont_be :empty?
|
17
|
+
user_email.to.must_equal [user_ken.email]
|
18
|
+
user_email.from.must_equal ['rails@minitest.spec']
|
19
|
+
user_email.body.must_equal "Welcome to MiniTest::Spec #{user_ken.email}!"
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'allows custom assertions' do
|
23
|
+
assert_emails(1) { user_email }
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'can find the mailer_class' do
|
27
|
+
self.class.mailer_class.must_equal user_mailer_class
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'nested 1' do
|
31
|
+
|
32
|
+
it('works') { skip }
|
33
|
+
|
34
|
+
it 'can find the mailer_class' do
|
35
|
+
self.class.mailer_class.must_equal user_mailer_class
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'nested 2' do
|
39
|
+
|
40
|
+
it('works') { skip }
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
class UserMailerTest < ActionMailer::TestCase
|
51
|
+
include UserMailerTests
|
52
|
+
it 'reflects' do
|
53
|
+
describing_class.must_equal UserMailerTest
|
54
|
+
described_class.must_equal UserMailer
|
55
|
+
self.class.described_class.must_equal UserMailer
|
56
|
+
end
|
57
|
+
describe 'level 1' do
|
58
|
+
it 'reflects' do
|
59
|
+
describing_class.must_equal UserMailerTest
|
60
|
+
described_class.must_equal UserMailer
|
61
|
+
self.class.described_class.must_equal UserMailer
|
62
|
+
end
|
63
|
+
describe 'level 2' do
|
64
|
+
it 'reflects' do
|
65
|
+
describing_class.must_equal UserMailerTest
|
66
|
+
described_class.must_equal UserMailer
|
67
|
+
self.class.described_class.must_equal UserMailer
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe UserMailer do
|
74
|
+
include UserMailerTests
|
75
|
+
it 'reflects' do
|
76
|
+
described_class.must_equal UserMailer
|
77
|
+
self.class.described_class.must_equal UserMailer
|
78
|
+
end
|
79
|
+
describe 'level 1' do
|
80
|
+
it 'reflects' do
|
81
|
+
described_class.must_equal UserMailer
|
82
|
+
self.class.described_class.must_equal UserMailer
|
83
|
+
end
|
84
|
+
describe 'level 2' do
|
85
|
+
it 'reflects' do
|
86
|
+
described_class.must_equal UserMailer
|
87
|
+
self.class.described_class.must_equal UserMailer
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
require 'test_helper_dummy'
|
2
|
+
|
3
|
+
module UserTests
|
4
|
+
def self.included(klass)
|
5
|
+
klass.class_eval do
|
6
|
+
|
7
|
+
it 'works' do
|
8
|
+
user_ken.must_be_instance_of User
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'allows custom assertions' do
|
12
|
+
assert_blank ''
|
13
|
+
end
|
14
|
+
|
15
|
+
describe 'nested 1' do
|
16
|
+
|
17
|
+
it('works') { skip }
|
18
|
+
|
19
|
+
describe 'nested 2' do
|
20
|
+
|
21
|
+
it('works') { skip }
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
class UserTest < ActiveSupport::TestCase
|
32
|
+
include UserTests
|
33
|
+
it 'reflects' do
|
34
|
+
describing_class.must_equal UserTest
|
35
|
+
described_class.must_equal User
|
36
|
+
self.class.described_class.must_equal User
|
37
|
+
end
|
38
|
+
describe 'level 1' do
|
39
|
+
it 'reflects' do
|
40
|
+
describing_class.must_equal UserTest
|
41
|
+
described_class.must_equal User
|
42
|
+
self.class.described_class.must_equal User
|
43
|
+
end
|
44
|
+
describe 'level 2' do
|
45
|
+
it 'reflects' do
|
46
|
+
describing_class.must_equal UserTest
|
47
|
+
described_class.must_equal User
|
48
|
+
self.class.described_class.must_equal User
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe User do
|
55
|
+
include UserTests
|
56
|
+
it 'reflects' do
|
57
|
+
described_class.must_equal User
|
58
|
+
self.class.described_class.must_equal User
|
59
|
+
end
|
60
|
+
describe 'level 1' do
|
61
|
+
it 'reflects' do
|
62
|
+
described_class.must_equal User
|
63
|
+
self.class.described_class.must_equal User
|
64
|
+
end
|
65
|
+
describe 'level 2' do
|
66
|
+
it 'reflects' do
|
67
|
+
described_class.must_equal User
|
68
|
+
self.class.described_class.must_equal User
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'test_helper_dummy'
|
2
|
+
|
3
|
+
module UsersControllerTests
|
4
|
+
def self.included(klass)
|
5
|
+
klass.class_eval do
|
6
|
+
|
7
|
+
before { get :index }
|
8
|
+
|
9
|
+
it 'works' do
|
10
|
+
assert_select 'h1', "All #{User.count} Users"
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class UsersControllerTest < ActionController::TestCase
|
18
|
+
include UsersControllerTests
|
19
|
+
end
|
20
|
+
|
21
|
+
describe UsersController do
|
22
|
+
include UsersControllerTests
|
23
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
require 'test_helper_dummy'
|
2
|
+
|
3
|
+
module UsersHelperTests
|
4
|
+
def self.included(klass)
|
5
|
+
klass.class_eval do
|
6
|
+
|
7
|
+
let(:users_list) { render_users_list User.all }
|
8
|
+
|
9
|
+
before { user_ken }
|
10
|
+
|
11
|
+
it 'works' do
|
12
|
+
user_ken
|
13
|
+
users_list.must_equal "<ul><li>#{user_ken.email}</li></ul>"
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'can find the helper_class' do
|
17
|
+
self.class.helper_class.must_equal UsersHelper
|
18
|
+
end
|
19
|
+
|
20
|
+
describe 'nested 1' do
|
21
|
+
|
22
|
+
it('works') { skip }
|
23
|
+
|
24
|
+
it 'can find the helper_class' do
|
25
|
+
self.class.helper_class.must_equal UsersHelper
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'nested 2' do
|
29
|
+
|
30
|
+
it('works') { skip }
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class UsersHelperTest < ActionView::TestCase
|
41
|
+
include UsersHelperTests
|
42
|
+
it 'reflects' do
|
43
|
+
describing_class.must_equal UsersHelperTest
|
44
|
+
described_class.must_equal UsersHelper
|
45
|
+
self.class.described_class.must_equal UsersHelper
|
46
|
+
end
|
47
|
+
describe 'level 1' do
|
48
|
+
it 'reflects' do
|
49
|
+
describing_class.must_equal UsersHelperTest
|
50
|
+
described_class.must_equal UsersHelper
|
51
|
+
self.class.described_class.must_equal UsersHelper
|
52
|
+
end
|
53
|
+
describe 'level 2' do
|
54
|
+
it 'reflects' do
|
55
|
+
describing_class.must_equal UsersHelperTest
|
56
|
+
described_class.must_equal UsersHelper
|
57
|
+
self.class.described_class.must_equal UsersHelper
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe UsersHelper do
|
64
|
+
include UsersHelperTests
|
65
|
+
it 'reflects' do
|
66
|
+
described_class.must_equal UsersHelper
|
67
|
+
self.class.described_class.must_equal UsersHelper
|
68
|
+
end
|
69
|
+
describe 'level 1' do
|
70
|
+
it 'reflects' do
|
71
|
+
described_class.must_equal UsersHelper
|
72
|
+
self.class.described_class.must_equal UsersHelper
|
73
|
+
end
|
74
|
+
describe 'level 2' do
|
75
|
+
it 'reflects' do
|
76
|
+
described_class.must_equal UsersHelper
|
77
|
+
self.class.described_class.must_equal UsersHelper
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
require 'minitest/emoji'
|
2
|
+
|
3
|
+
if ENV['CI'].blank? && RUBY_VERSION >= '1.9'
|
4
|
+
MiniTest::Emoji::DEFAULT.merge! '.' => "\u{1f49A} ", 'F' => "\u{1f494} ", 'E' => "\u{1f480} ", 'S' => "\u{1f49B} "
|
5
|
+
else
|
6
|
+
MiniTest::Emoji::DEFAULT.merge! '.' => ".", 'F' => "F", 'E' => "E", 'S' => "S"
|
7
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module MiniTestSpecRails
|
2
|
+
module SharedTestCaseBehavior
|
3
|
+
|
4
|
+
def self.included(klass)
|
5
|
+
klass.class_eval do
|
6
|
+
before { setup_dummy_schema }
|
7
|
+
let(:user_ken) { User.create! :email => 'ken@metaskills.net' }
|
8
|
+
let(:user_post) { Post.create! :title => 'Test Title', :body => 'Test body. Test body.', :user => user_ken}
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def setup_dummy_schema
|
15
|
+
ActiveRecord::Base.class_eval do
|
16
|
+
connection.instance_eval do
|
17
|
+
create_table :users, :force => true do |t|
|
18
|
+
t.string :email
|
19
|
+
end
|
20
|
+
create_table :posts, :force => true do |t|
|
21
|
+
t.string :title, :body
|
22
|
+
t.integer :user_id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
data/test/test_helper.rb
ADDED
metadata
CHANGED
@@ -1,108 +1,283 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-spec-rails
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 3.1.0
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Ken Collins
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2013-03-19 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
prerelease: false
|
22
|
+
type: :runtime
|
15
23
|
name: minitest
|
16
|
-
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
17
25
|
none: false
|
18
|
-
requirements:
|
26
|
+
requirements:
|
19
27
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
22
|
-
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 21
|
30
|
+
segments:
|
31
|
+
- 4
|
32
|
+
- 7
|
33
|
+
version: "4.7"
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
23
36
|
prerelease: false
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '2.1'
|
30
|
-
- !ruby/object:Gem::Dependency
|
37
|
+
type: :runtime
|
31
38
|
name: rails
|
32
|
-
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
33
40
|
none: false
|
34
|
-
requirements:
|
41
|
+
requirements:
|
35
42
|
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
|
38
|
-
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 2
|
47
|
+
- 3
|
48
|
+
- 0
|
49
|
+
version: 2.3.0
|
50
|
+
requirement: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
39
52
|
prerelease: false
|
40
|
-
|
53
|
+
type: :runtime
|
54
|
+
name: minitest_tu_shim
|
55
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
41
56
|
none: false
|
42
|
-
requirements:
|
57
|
+
requirements:
|
43
58
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 31
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 3
|
64
|
+
- 2
|
65
|
+
version: 1.3.2
|
66
|
+
requirement: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
prerelease: false
|
69
|
+
type: :development
|
70
|
+
name: guard-minitest
|
71
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
49
72
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
80
|
+
requirement: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
prerelease: false
|
83
|
+
type: :development
|
84
|
+
name: minitest-emoji
|
85
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
86
|
+
none: false
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
94
|
+
requirement: *id005
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
prerelease: false
|
97
|
+
type: :development
|
98
|
+
name: minitest-focus
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 3
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
version: "0"
|
108
|
+
requirement: *id006
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
prerelease: false
|
54
111
|
type: :development
|
112
|
+
name: rake
|
113
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
hash: 3
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
version: "0"
|
122
|
+
requirement: *id007
|
123
|
+
- !ruby/object:Gem::Dependency
|
55
124
|
prerelease: false
|
56
|
-
|
125
|
+
type: :development
|
126
|
+
name: sqlite3
|
127
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
57
128
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
version: "0"
|
136
|
+
requirement: *id008
|
137
|
+
description: The minitest-spec-rails gem makes it easy to use the MiniTest::Spec DSL within your existing Rails 3 or 4 test suite.
|
138
|
+
email:
|
65
139
|
- ken@metaskills.net
|
66
140
|
executables: []
|
141
|
+
|
67
142
|
extensions: []
|
143
|
+
|
68
144
|
extra_rdoc_files: []
|
69
|
-
|
145
|
+
|
146
|
+
files:
|
70
147
|
- .gitignore
|
148
|
+
- .travis.yml
|
71
149
|
- CHANGELOG.md
|
72
150
|
- Gemfile
|
151
|
+
- Guardfile
|
73
152
|
- MIT-LICENSE
|
74
153
|
- README.md
|
75
154
|
- Rakefile
|
76
155
|
- lib/minitest-spec-rails.rb
|
77
|
-
- lib/minitest-spec-rails/
|
156
|
+
- lib/minitest-spec-rails/dsl.rb
|
157
|
+
- lib/minitest-spec-rails/init/action_controller.rb
|
158
|
+
- lib/minitest-spec-rails/init/action_dispatch.rb
|
159
|
+
- lib/minitest-spec-rails/init/action_mailer.rb
|
160
|
+
- lib/minitest-spec-rails/init/action_view.rb
|
161
|
+
- lib/minitest-spec-rails/init/active_support.rb
|
162
|
+
- lib/minitest-spec-rails/init/mini_shoulda.rb
|
163
|
+
- lib/minitest-spec-rails/rails.rb
|
78
164
|
- lib/minitest-spec-rails/version.rb
|
79
|
-
- lib/test/unit.rb
|
80
|
-
- lib/test/unit/assertions.rb
|
81
|
-
- lib/test/unit/testcase.rb
|
82
165
|
- minitest-spec-rails.gemspec
|
166
|
+
- test/cases/action_controller_test.rb
|
167
|
+
- test/cases/action_dispatch_test.rb
|
168
|
+
- test/cases/action_mailer_test.rb
|
169
|
+
- test/cases/action_view_test.rb
|
170
|
+
- test/cases/active_support_test.rb
|
171
|
+
- test/cases/mini_shoulda_test.rb
|
172
|
+
- test/dummy_app/app/controllers/application_controller.rb
|
173
|
+
- test/dummy_app/app/controllers/users_controller.rb
|
174
|
+
- test/dummy_app/app/helpers/application_helper.rb
|
175
|
+
- test/dummy_app/app/helpers/foos_helper.rb
|
176
|
+
- test/dummy_app/app/helpers/users_helper.rb
|
177
|
+
- test/dummy_app/app/models/post.rb
|
178
|
+
- test/dummy_app/app/models/user.rb
|
179
|
+
- test/dummy_app/app/models/user_mailer.rb
|
180
|
+
- test/dummy_app/app/views/user_mailer/welcome.erb
|
181
|
+
- test/dummy_app/app/views/users/index.rhtml
|
182
|
+
- test/dummy_app/config/boot.rb
|
183
|
+
- test/dummy_app/config/database.yml
|
184
|
+
- test/dummy_app/config/environment.rb
|
185
|
+
- test/dummy_app/config/environments/test.rb
|
186
|
+
- test/dummy_app/config/initializers/new_rails_defaults.rb
|
187
|
+
- test/dummy_app/config/routes.rb
|
188
|
+
- test/dummy_app/db/schema.rb
|
189
|
+
- test/dummy_app/init.rb
|
190
|
+
- test/dummy_app/log/.keep
|
191
|
+
- test/dummy_app/public/.htaccess
|
192
|
+
- test/dummy_app/public/404.html
|
193
|
+
- test/dummy_app/public/422.html
|
194
|
+
- test/dummy_app/public/500.html
|
195
|
+
- test/dummy_app/script/console
|
196
|
+
- test/dummy_app/script/generate
|
197
|
+
- test/dummy_tests/application_controller_test.rb
|
198
|
+
- test/dummy_tests/foo_helper_test.rb
|
199
|
+
- test/dummy_tests/integration_test.rb
|
200
|
+
- test/dummy_tests/user_mailer_test.rb
|
201
|
+
- test/dummy_tests/user_test.rb
|
202
|
+
- test/dummy_tests/users_controller_test.rb
|
203
|
+
- test/dummy_tests/users_helper_test.rb
|
204
|
+
- test/support/minitest.rb
|
205
|
+
- test/support/shared_test_case_behavior.rb
|
206
|
+
- test/test_helper.rb
|
207
|
+
- test/test_helper_dummy.rb
|
83
208
|
homepage: http://github.com/metaskills/minitest-spec-rails
|
84
209
|
licenses: []
|
210
|
+
|
85
211
|
post_install_message:
|
86
212
|
rdoc_options: []
|
87
|
-
|
213
|
+
|
214
|
+
require_paths:
|
88
215
|
- lib
|
89
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
216
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
217
|
none: false
|
91
|
-
requirements:
|
92
|
-
- -
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
|
95
|
-
|
218
|
+
requirements:
|
219
|
+
- - ">="
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
hash: 3
|
222
|
+
segments:
|
223
|
+
- 0
|
224
|
+
version: "0"
|
225
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
226
|
none: false
|
97
|
-
requirements:
|
98
|
-
- -
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
|
227
|
+
requirements:
|
228
|
+
- - ">="
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
hash: 3
|
231
|
+
segments:
|
232
|
+
- 0
|
233
|
+
version: "0"
|
101
234
|
requirements: []
|
235
|
+
|
102
236
|
rubyforge_project:
|
103
|
-
rubygems_version: 1.8.
|
237
|
+
rubygems_version: 1.8.25
|
104
238
|
signing_key:
|
105
239
|
specification_version: 3
|
106
|
-
summary:
|
107
|
-
test_files:
|
108
|
-
|
240
|
+
summary: Make Rails Use MiniTest::Spec!
|
241
|
+
test_files:
|
242
|
+
- test/cases/action_controller_test.rb
|
243
|
+
- test/cases/action_dispatch_test.rb
|
244
|
+
- test/cases/action_mailer_test.rb
|
245
|
+
- test/cases/action_view_test.rb
|
246
|
+
- test/cases/active_support_test.rb
|
247
|
+
- test/cases/mini_shoulda_test.rb
|
248
|
+
- test/dummy_app/app/controllers/application_controller.rb
|
249
|
+
- test/dummy_app/app/controllers/users_controller.rb
|
250
|
+
- test/dummy_app/app/helpers/application_helper.rb
|
251
|
+
- test/dummy_app/app/helpers/foos_helper.rb
|
252
|
+
- test/dummy_app/app/helpers/users_helper.rb
|
253
|
+
- test/dummy_app/app/models/post.rb
|
254
|
+
- test/dummy_app/app/models/user.rb
|
255
|
+
- test/dummy_app/app/models/user_mailer.rb
|
256
|
+
- test/dummy_app/app/views/user_mailer/welcome.erb
|
257
|
+
- test/dummy_app/app/views/users/index.rhtml
|
258
|
+
- test/dummy_app/config/boot.rb
|
259
|
+
- test/dummy_app/config/database.yml
|
260
|
+
- test/dummy_app/config/environment.rb
|
261
|
+
- test/dummy_app/config/environments/test.rb
|
262
|
+
- test/dummy_app/config/initializers/new_rails_defaults.rb
|
263
|
+
- test/dummy_app/config/routes.rb
|
264
|
+
- test/dummy_app/db/schema.rb
|
265
|
+
- test/dummy_app/init.rb
|
266
|
+
- test/dummy_app/log/.keep
|
267
|
+
- test/dummy_app/public/.htaccess
|
268
|
+
- test/dummy_app/public/404.html
|
269
|
+
- test/dummy_app/public/422.html
|
270
|
+
- test/dummy_app/public/500.html
|
271
|
+
- test/dummy_app/script/console
|
272
|
+
- test/dummy_app/script/generate
|
273
|
+
- test/dummy_tests/application_controller_test.rb
|
274
|
+
- test/dummy_tests/foo_helper_test.rb
|
275
|
+
- test/dummy_tests/integration_test.rb
|
276
|
+
- test/dummy_tests/user_mailer_test.rb
|
277
|
+
- test/dummy_tests/user_test.rb
|
278
|
+
- test/dummy_tests/users_controller_test.rb
|
279
|
+
- test/dummy_tests/users_helper_test.rb
|
280
|
+
- test/support/minitest.rb
|
281
|
+
- test/support/shared_test_case_behavior.rb
|
282
|
+
- test/test_helper.rb
|
283
|
+
- test/test_helper_dummy.rb
|