minitest-rails 2.2.1 → 3.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -6
  3. data/CHANGELOG.rdoc +0 -6
  4. data/Gemfile +1 -1
  5. data/Manifest.txt +6 -13
  6. data/Rakefile +4 -3
  7. data/gemfiles/5.0.gemfile +5 -0
  8. data/gemfiles/head.gemfile +5 -0
  9. data/lib/generators/minitest/controller/templates/controller_spec.rb +9 -5
  10. data/lib/generators/minitest/controller/templates/controller_test.rb +9 -5
  11. data/lib/generators/minitest/generator/generator_generator.rb +2 -3
  12. data/lib/generators/minitest/generator/templates/generator_spec.rb +1 -1
  13. data/lib/generators/minitest/generator/templates/generator_test.rb +1 -1
  14. data/lib/generators/minitest/helper/helper_generator.rb +1 -11
  15. data/lib/generators/minitest/integration/integration_generator.rb +1 -2
  16. data/lib/generators/minitest/integration/templates/integration_spec.rb +3 -3
  17. data/lib/generators/minitest/integration/templates/integration_test.rb +3 -3
  18. data/lib/generators/minitest/job/job_generator.rb +2 -3
  19. data/lib/generators/minitest/job/templates/job_spec.rb +3 -3
  20. data/lib/generators/minitest/job/templates/job_test.rb +3 -3
  21. data/lib/generators/minitest/mailer/mailer_generator.rb +9 -4
  22. data/lib/generators/minitest/mailer/templates/mailer_spec.rb +4 -4
  23. data/lib/generators/minitest/mailer/templates/mailer_test.rb +5 -5
  24. data/lib/generators/minitest/mailer/templates/preview.rb +5 -5
  25. data/lib/generators/minitest/model/model_generator.rb +3 -4
  26. data/lib/generators/minitest/model/templates/fixtures.yml +17 -12
  27. data/lib/generators/minitest/scaffold/scaffold_generator.rb +24 -3
  28. data/lib/generators/minitest/scaffold/templates/api_controller_spec.rb +42 -0
  29. data/lib/generators/minitest/scaffold/templates/api_controller_test.rb +44 -0
  30. data/lib/generators/minitest/scaffold/templates/controller_spec.rb +14 -11
  31. data/lib/generators/minitest/scaffold/templates/controller_test.rb +17 -14
  32. data/lib/minitest/rails.rb +10 -27
  33. data/lib/minitest/rails/assertions.rb +0 -561
  34. data/lib/minitest/rails/expectations.rb +0 -63
  35. data/lib/minitest/rails/version.rb +1 -1
  36. data/minitest-rails.gemspec +13 -10
  37. data/tasks/test.rake +8 -8
  38. data/test/generators/test_helper_generator.rb +8 -16
  39. data/test/generators/test_mailer_generator.rb +16 -17
  40. data/test/generators/test_model_generator.rb +1 -1
  41. data/test/generators/test_scaffold_generator.rb +2 -2
  42. data/test/helper.rb +16 -1
  43. data/test/rails/{action_controller → action_dispatch}/test_assertions.rb +4 -11
  44. data/test/rails/{action_controller → action_dispatch}/test_expectations.rb +4 -11
  45. data/test/rails/action_dispatch/test_spec_type.rb +6 -18
  46. data/test/rails/action_mailer/test_mailers.rb +6 -6
  47. data/test/rails/action_view/test_helpers.rb +2 -2
  48. metadata +28 -21
  49. data/gemfiles/4.1.gemfile +0 -5
  50. data/gemfiles/4.2.gemfile +0 -5
  51. data/lib/generators/minitest/helper/templates/helper_spec.rb +0 -9
  52. data/lib/generators/minitest/helper/templates/helper_test.rb +0 -9
  53. data/lib/generators/minitest/route/route_generator.rb +0 -28
  54. data/lib/generators/minitest/route/templates/route_spec.rb +0 -13
  55. data/lib/generators/minitest/route/templates/route_test.rb +0 -13
  56. data/test/generators/test_route_generator.rb +0 -24
  57. data/test/rails/action_controller/test_controllers.rb +0 -202
  58. data/test/rails/action_controller/test_spec_type.rb +0 -47
  59. data/test/rails/minitest_5_api_test.rb +0 -8
@@ -1,24 +1,17 @@
1
1
  require "helper"
2
2
 
3
- class TestActionControllerExpectations < ActionController::TestCase
4
- tests ModelsController
5
-
3
+ class TestIntegrationExpectations < ActionDispatch::IntegrationTest
6
4
  def test_must_respond_with
7
- get :index
5
+ get models_path
8
6
  must_respond_with :success
9
7
  value(response).must_be :success?
10
8
  end
11
9
 
12
10
  def test_must_redirect_to
13
- get :new
11
+ get new_model_path
14
12
  must_redirect_to :models
15
13
  end
16
14
 
17
- def test_must_render_template
18
- get :index
19
- must_render_template :layout => false
20
- end
21
-
22
15
  def test_routing_expectations
23
16
  params = { :controller => "models", :action => "index" }
24
17
  path = "/models"
@@ -37,7 +30,7 @@ class TestActionControllerExpectations < ActionController::TestCase
37
30
  end
38
31
 
39
32
  def test_must_select
40
- get :index
33
+ get models_path
41
34
  must_select "body h1"
42
35
  must_select "body" do
43
36
  must_select "h1"
@@ -1,5 +1,8 @@
1
1
  require "helper"
2
2
 
3
+ class ApplicationController < ActionController::Base; end
4
+ class ModelsController < ApplicationController; end
5
+
3
6
  class TestActionDispatchSpecType < Minitest::Test
4
7
  def assert_dispatch actual
5
8
  assert_equal ActionDispatch::IntegrationTest, actual
@@ -9,24 +12,9 @@ class TestActionDispatchSpecType < Minitest::Test
9
12
  refute_equal ActionDispatch::IntegrationTest, actual
10
13
  end
11
14
 
12
- def test_spec_type_resolves_for_matching_acceptance_strings
13
- assert_dispatch Minitest::Spec.spec_type("WidgetAcceptanceTest")
14
- assert_dispatch Minitest::Spec.spec_type("Widget Acceptance Test")
15
- assert_dispatch Minitest::Spec.spec_type("WidgetAcceptance")
16
- assert_dispatch Minitest::Spec.spec_type("Widget Acceptance")
17
- # And is not case sensitive
18
- assert_dispatch Minitest::Spec.spec_type("widgetacceptancetest")
19
- assert_dispatch Minitest::Spec.spec_type("widget acceptance test")
20
- assert_dispatch Minitest::Spec.spec_type("widgetacceptance")
21
- assert_dispatch Minitest::Spec.spec_type("widget acceptance")
22
- end
23
-
24
- def test_spec_type_wont_match_non_space_characters_acceptance
25
- refute_dispatch Minitest::Spec.spec_type("Widget Acceptance\tTest")
26
- refute_dispatch Minitest::Spec.spec_type("Widget Acceptance\rTest")
27
- refute_dispatch Minitest::Spec.spec_type("Widget Acceptance\nTest")
28
- refute_dispatch Minitest::Spec.spec_type("Widget Acceptance\fTest")
29
- refute_dispatch Minitest::Spec.spec_type("Widget AcceptanceXTest")
15
+ def test_spec_type_resolves_for_class_constants
16
+ assert_dispatch Minitest::Spec.spec_type(ApplicationController)
17
+ assert_dispatch Minitest::Spec.spec_type(ModelsController)
30
18
  end
31
19
 
32
20
  def test_spec_type_resolves_for_matching_integration_strings
@@ -17,7 +17,7 @@ class CrazySymbolNameMailerTest < ActionMailer::TestCase
17
17
  def test_set_mailer_class_manual_using_symbol
18
18
  assert_equal TestTestMailer, self.class.mailer_class
19
19
  end
20
- end if Rails::VERSION::STRING >= "3.2"
20
+ end
21
21
 
22
22
  class CrazyStringNameMailerTest < ActionMailer::TestCase
23
23
  tests 'test_test_mailer'
@@ -25,7 +25,7 @@ class CrazyStringNameMailerTest < ActionMailer::TestCase
25
25
  def test_set_mailer_class_manual_using_string
26
26
  assert_equal TestTestMailer, self.class.mailer_class
27
27
  end
28
- end if Rails::VERSION::STRING >= "3.2"
28
+ end
29
29
 
30
30
  # New tests...
31
31
  describe TestTestMailer do
@@ -74,7 +74,7 @@ describe "AnotherCrazySymbolNameMailerTest" do
74
74
  it "gets the mailer after setting it with a symbol" do
75
75
  assert_equal TestTestMailer, self.class.mailer_class
76
76
  end
77
- end if Rails::VERSION::STRING >= "3.2"
77
+ end
78
78
 
79
79
  describe "AnotherCrazyStringNameMailerTest" do
80
80
  tests 'test_test_mailer'
@@ -82,7 +82,7 @@ describe "AnotherCrazyStringNameMailerTest" do
82
82
  it "gets the mailer after setting it with a string" do
83
83
  assert_equal TestTestMailer, self.class.mailer_class
84
84
  end
85
- end if Rails::VERSION::STRING >= "3.2"
85
+ end
86
86
 
87
87
  describe "Another Crazy Name Mailer Test" do
88
88
  tests TestTestMailer
@@ -98,7 +98,7 @@ describe "Another Crazy Symbol Name Mailer Test" do
98
98
  it "gets the mailer after setting it with a symbol" do
99
99
  assert_equal TestTestMailer, self.class.mailer_class
100
100
  end
101
- end if Rails::VERSION::STRING >= "3.2"
101
+ end
102
102
 
103
103
  describe "Another Crazy String Name Mailer Test" do
104
104
  tests 'test_test_mailer'
@@ -106,4 +106,4 @@ describe "Another Crazy String Name Mailer Test" do
106
106
  it "gets the mailer after setting it with a string" do
107
107
  assert_equal TestTestMailer, self.class.mailer_class
108
108
  end
109
- end if Rails::VERSION::STRING >= "3.2"
109
+ end
@@ -33,7 +33,7 @@ class CrazySymbolHelperTest < ActionView::TestCase
33
33
  def test_set_helper_class_using_symbol
34
34
  assert_equal PeopleHelper, self.class.helper_class
35
35
  end
36
- end if Rails::VERSION::STRING >= "3.2"
36
+ end
37
37
 
38
38
  class CrazyStringHelperTest < ActionView::TestCase
39
39
  tests 'people'
@@ -41,7 +41,7 @@ class CrazyStringHelperTest < ActionView::TestCase
41
41
  def test_set_helper_class_using_string
42
42
  assert_equal PeopleHelper, self.class.helper_class
43
43
  end
44
- end if Rails::VERSION::STRING >= "3.2"
44
+ end
45
45
 
46
46
  # New tests...
47
47
  describe PeopleHelper do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 3.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-07 00:00:00.000000000 Z
11
+ date: 2016-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.7'
19
+ version: '5.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.7'
26
+ version: '5.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railties
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.1'
33
+ version: 5.0.0.rc1
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
- version: '4.1'
40
+ version: 5.0.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.4.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: hoe
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -99,8 +113,8 @@ files:
99
113
  - Manifest.txt
100
114
  - README.rdoc
101
115
  - Rakefile
102
- - gemfiles/4.1.gemfile
103
- - gemfiles/4.2.gemfile
116
+ - gemfiles/5.0.gemfile
117
+ - gemfiles/head.gemfile
104
118
  - lib/generators/.document
105
119
  - lib/generators/minitest.rb
106
120
  - lib/generators/minitest/controller/controller_generator.rb
@@ -110,8 +124,6 @@ files:
110
124
  - lib/generators/minitest/generator/templates/generator_spec.rb
111
125
  - lib/generators/minitest/generator/templates/generator_test.rb
112
126
  - lib/generators/minitest/helper/helper_generator.rb
113
- - lib/generators/minitest/helper/templates/helper_spec.rb
114
- - lib/generators/minitest/helper/templates/helper_test.rb
115
127
  - lib/generators/minitest/install/install_generator.rb
116
128
  - lib/generators/minitest/install/templates/test_helper.rb
117
129
  - lib/generators/minitest/integration/integration_generator.rb
@@ -128,10 +140,9 @@ files:
128
140
  - lib/generators/minitest/model/templates/fixtures.yml
129
141
  - lib/generators/minitest/model/templates/model_spec.rb
130
142
  - lib/generators/minitest/model/templates/model_test.rb
131
- - lib/generators/minitest/route/route_generator.rb
132
- - lib/generators/minitest/route/templates/route_spec.rb
133
- - lib/generators/minitest/route/templates/route_test.rb
134
143
  - lib/generators/minitest/scaffold/scaffold_generator.rb
144
+ - lib/generators/minitest/scaffold/templates/api_controller_spec.rb
145
+ - lib/generators/minitest/scaffold/templates/api_controller_test.rb
135
146
  - lib/generators/minitest/scaffold/templates/controller_spec.rb
136
147
  - lib/generators/minitest/scaffold/templates/controller_test.rb
137
148
  - lib/minitest-rails.rb
@@ -150,13 +161,10 @@ files:
150
161
  - test/generators/test_job_generator.rb
151
162
  - test/generators/test_mailer_generator.rb
152
163
  - test/generators/test_model_generator.rb
153
- - test/generators/test_route_generator.rb
154
164
  - test/generators/test_scaffold_generator.rb
155
165
  - test/helper.rb
156
- - test/rails/action_controller/test_assertions.rb
157
- - test/rails/action_controller/test_controllers.rb
158
- - test/rails/action_controller/test_expectations.rb
159
- - test/rails/action_controller/test_spec_type.rb
166
+ - test/rails/action_dispatch/test_assertions.rb
167
+ - test/rails/action_dispatch/test_expectations.rb
160
168
  - test/rails/action_dispatch/test_spec_type.rb
161
169
  - test/rails/action_mailer/test_mailers.rb
162
170
  - test/rails/action_mailer/test_spec_type.rb
@@ -169,7 +177,6 @@ files:
169
177
  - test/rails/active_support/test_expectations.rb
170
178
  - test/rails/active_support/test_spec_type.rb
171
179
  - test/rails/generators/test_spec_type.rb
172
- - test/rails/minitest_5_api_test.rb
173
180
  - test/rails/test_constant_lookup.rb
174
181
  - test/test_sanity.rb
175
182
  homepage: http://blowmage.com/minitest-rails
@@ -189,9 +196,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
196
  version: '0'
190
197
  required_rubygems_version: !ruby/object:Gem::Requirement
191
198
  requirements:
192
- - - ">="
199
+ - - ">"
193
200
  - !ruby/object:Gem::Version
194
- version: '0'
201
+ version: 1.3.1
195
202
  requirements: []
196
203
  rubyforge_project:
197
204
  rubygems_version: 2.6.4
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gem "rails", "~> 4.1.0"
4
- gem "sqlite3"
5
- gem "rake"
@@ -1,5 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gem "rails", "~> 4.2.0"
4
- gem "sqlite3"
5
- gem "rake"
@@ -1,9 +0,0 @@
1
- require "test_helper"
2
-
3
- <% module_namespacing do -%>
4
- describe <%= class_name %>Helper do
5
- it "must be a real test" do
6
- flunk "Need real tests"
7
- end
8
- end
9
- <% end -%>
@@ -1,9 +0,0 @@
1
- require "test_helper"
2
-
3
- <% module_namespacing do -%>
4
- class <%= class_name %>HelperTest < ActionView::TestCase
5
- def test_sanity
6
- flunk "Need real tests"
7
- end
8
- end
9
- <% end -%>
@@ -1,28 +0,0 @@
1
- require "generators/minitest"
2
-
3
- module Minitest
4
- module Generators
5
- class RouteGenerator < ::Rails::Generators::Base
6
-
7
- class_option :spec, type: :boolean, default: false,
8
- desc: "Use Minitest::Spec DSL"
9
-
10
- desc <<DESC
11
- Description:
12
- Creates a route test.
13
- DESC
14
-
15
- def self.source_root
16
- @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
17
- end
18
-
19
- def create_test_files
20
- if options[:spec]
21
- template "route_spec.rb", File.join("test", "routes", "route_test.rb")
22
- else
23
- template "route_test.rb", File.join("test", "routes", "route_test.rb")
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,13 +0,0 @@
1
- require "test_helper"
2
-
3
- # Add the following to your Rake file to test routes by default:
4
- # Rails::TestTask.new("test:routes" => "test:prepare") do |t|
5
- # t.pattern = "test/routes/**/*_test.rb"
6
- # end
7
- # Rake::Task["test:run"].enhance ["test:routes"]
8
-
9
- describe "Route Integration Test" do
10
- it "route root" do
11
- must_route "/", controller: "home", action: "show"
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- require "test_helper"
2
-
3
- # Add the following to your Rake file to test routes by default:
4
- # Rails::TestTask.new("test:routes" => "test:prepare") do |t|
5
- # t.pattern = "test/routes/**/*_test.rb"
6
- # end
7
- # Rake::Task["test:run"].enhance ["test:routes"]
8
-
9
- class RouteTest < ActionDispatch::IntegrationTest
10
- def test_root
11
- assert_routing "/", controller: "home", action: "show"
12
- end
13
- end
@@ -1,24 +0,0 @@
1
- require "helper"
2
- require "generators/minitest/route/route_generator"
3
-
4
- class TestRouteGenerator < GeneratorTest
5
-
6
- def test_route_generator
7
- assert_output(/create test\/routes\/route_test.rb/m) do
8
- Minitest::Generators::RouteGenerator.start
9
- end
10
- assert File.exists? "test/routes/route_test.rb"
11
- contents = File.read "test/routes/route_test.rb"
12
- assert_match(/class RouteTest/m, contents)
13
- end
14
-
15
- def test_route_generator_spec
16
- assert_output(/create test\/routes\/route_test.rb/m) do
17
- Minitest::Generators::RouteGenerator.start ["--spec"]
18
- end
19
- assert File.exists? "test/routes/route_test.rb"
20
- contents = File.read "test/routes/route_test.rb"
21
- assert_match(/describe "Route Integration Test" do/m, contents)
22
- end
23
-
24
- end
@@ -1,202 +0,0 @@
1
- require "helper"
2
-
3
- # ApplicationController
4
- describe ApplicationController do
5
- describe "nested" do
6
- describe "even deeper" do
7
- it "exists" do
8
- assert_kind_of ApplicationController, @controller
9
- end
10
- end
11
- end
12
- end
13
-
14
- describe ApplicationController, :index do
15
- describe "nested" do
16
- describe "even deeper" do
17
- it "exists" do
18
- assert_kind_of ApplicationController, @controller
19
- end
20
- end
21
- end
22
- end
23
-
24
- describe ApplicationController, "unauthenticated user" do
25
- describe "nested" do
26
- describe "even deeper" do
27
- it "exists" do
28
- assert_kind_of ApplicationController, @controller
29
- end
30
- end
31
- end
32
- end
33
-
34
- describe "ApplicationControllerTest" do
35
- describe "nested" do
36
- describe "even deeper" do
37
- it "exists" do
38
- assert_kind_of ApplicationController, @controller
39
- end
40
- end
41
- end
42
- end
43
-
44
- describe "ApplicationControllerTest", :index do
45
- describe "nested" do
46
- describe "even deeper" do
47
- it "exists" do
48
- assert_kind_of ApplicationController, @controller
49
- end
50
- end
51
- end
52
- end
53
-
54
- describe "ApplicationControllerTest", "unauthenticated user" do
55
- describe "nested" do
56
- describe "even deeper" do
57
- it "exists" do
58
- assert_kind_of ApplicationController, @controller
59
- end
60
- end
61
- end
62
- end
63
-
64
- # ModelsController
65
- describe ModelsController do
66
- describe "nested" do
67
- describe "even deeper" do
68
- it "exists" do
69
- assert_kind_of ModelsController, @controller
70
- end
71
- end
72
- end
73
- end
74
-
75
- describe ModelsController, :index do
76
- describe "nested" do
77
- describe "even deeper" do
78
- it "exists" do
79
- assert_kind_of ModelsController, @controller
80
- end
81
- end
82
- end
83
- end
84
-
85
- describe ModelsController, "unauthenticated user" do
86
- describe "nested" do
87
- describe "even deeper" do
88
- it "exists" do
89
- assert_kind_of ModelsController, @controller
90
- end
91
- end
92
- end
93
- end
94
-
95
- describe "ModelsControllerTest" do
96
- describe "nested" do
97
- describe "even deeper" do
98
- it "exists" do
99
- assert_kind_of ModelsController, @controller
100
- end
101
- end
102
- end
103
- end
104
-
105
- describe "ModelsControllerTest", :index do
106
- describe "nested" do
107
- describe "even deeper" do
108
- it "exists" do
109
- assert_kind_of ModelsController, @controller
110
- end
111
- end
112
- end
113
- end
114
-
115
- describe "ModelsControllerTest", "unauthenticated user" do
116
- describe "nested" do
117
- describe "even deeper" do
118
- it "exists" do
119
- assert_kind_of ModelsController, @controller
120
- end
121
- end
122
- end
123
- end
124
-
125
- # Nested Admin::WidgetsControllerTest
126
- module Admin
127
- class WidgetsControllerTest < ActionController::TestCase
128
- def test_exists
129
- assert_kind_of Admin::WidgetsController, @controller
130
- end
131
- end
132
-
133
- describe WidgetsController do
134
- describe "index" do
135
- it "respond successful" do
136
- assert_kind_of Admin::WidgetsController, @controller
137
- end
138
- end
139
- end
140
-
141
- describe WidgetsController, "unauthenticated users" do
142
- describe "index" do
143
- it "respond successful" do
144
- assert_kind_of Admin::WidgetsController, @controller
145
- end
146
- end
147
- end
148
- end
149
-
150
- class Admin::WidgetsControllerTest < ActionController::TestCase
151
- def test_exists_here_too
152
- assert_kind_of Admin::WidgetsController, @controller
153
- end
154
- end
155
-
156
- describe Admin::WidgetsController do
157
- describe "index" do
158
- it "respond successful" do
159
- assert_kind_of Admin::WidgetsController, @controller
160
- end
161
- end
162
- end
163
-
164
- describe Admin::WidgetsController, "unauthenticated users" do
165
- describe "index" do
166
- it "respond successful" do
167
- assert_kind_of Admin::WidgetsController, @controller
168
- end
169
- end
170
- end
171
-
172
- describe "Admin::WidgetsController" do
173
- describe "index" do
174
- it "respond successful" do
175
- assert_kind_of Admin::WidgetsController, @controller
176
- end
177
- end
178
- end
179
-
180
- describe "Admin::WidgetsControllerTest" do
181
- describe "index" do
182
- it "respond successful" do
183
- assert_kind_of Admin::WidgetsController, @controller
184
- end
185
- end
186
- end
187
-
188
- describe "Admin::WidgetsController", "unauthenticated users" do
189
- describe "index" do
190
- it "respond successful" do
191
- assert_kind_of Admin::WidgetsController, @controller
192
- end
193
- end
194
- end
195
-
196
- describe "Admin::WidgetsControllerTest", "unauthenticated users" do
197
- describe "index" do
198
- it "respond successful" do
199
- assert_kind_of Admin::WidgetsController, @controller
200
- end
201
- end
202
- end