cells 3.3.10 → 3.4.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/CHANGES +0 -8
  2. data/Gemfile +4 -1
  3. data/README.rdoc +91 -107
  4. data/Rakefile +0 -4
  5. data/lib/cell.rb +5 -6
  6. data/lib/{cells/cell → cell}/active_helper.rb +1 -1
  7. data/lib/cell/base.rb +134 -0
  8. data/lib/cell/base_methods.rb +100 -0
  9. data/lib/cell/caching.rb +153 -0
  10. data/lib/cell/rails.rb +239 -0
  11. data/lib/cells.rb +25 -3
  12. data/lib/cells/assertions_helper.rb +1 -1
  13. data/lib/cells/helpers/capture_helper.rb +3 -3
  14. data/lib/cells/rails.rb +65 -4
  15. data/lib/cells/version.rb +3 -1
  16. data/rails_generators/cell/cell_generator.rb +47 -35
  17. data/rails_generators/cell/templates/cell.rb +1 -1
  18. data/rails_generators/cells_install/cells_install_generator.rb +5 -3
  19. data/rails_generators/erb/cell_generator.rb +20 -0
  20. data/rails_generators/{cell → erb}/templates/view.html.erb +0 -0
  21. data/test/active_helper_test.rb +1 -0
  22. data/test/app/cells/bad_guitarist_cell.rb +2 -0
  23. data/test/app/cells/bassist_cell.rb +1 -1
  24. data/test/app/controllers/musician_controller.rb +16 -0
  25. data/test/assertions_helper_test.rb +8 -18
  26. data/test/base_methods_test.rb +40 -0
  27. data/test/cell_generator_test.rb +33 -21
  28. data/test/helper_test.rb +31 -123
  29. data/test/rails/caching_test.rb +215 -0
  30. data/test/rails/capture_test.rb +52 -0
  31. data/test/rails/cells_test.rb +88 -0
  32. data/test/rails/integration_test.rb +37 -0
  33. data/test/rails/render_test.rb +140 -0
  34. data/test/rails/router_test.rb +74 -0
  35. data/test/rails/view_test.rb +24 -0
  36. data/test/test_helper.rb +30 -29
  37. metadata +68 -133
  38. data/.gitignore +0 -3
  39. data/about.yml +0 -7
  40. data/cells.gemspec +0 -26
  41. data/lib/cells/cell.rb +0 -16
  42. data/lib/cells/cell/base.rb +0 -470
  43. data/lib/cells/cell/caching.rb +0 -163
  44. data/lib/cells/cell/test_case.rb +0 -158
  45. data/lib/cells/cell/view.rb +0 -55
  46. data/lib/cells/rails/action_controller.rb +0 -37
  47. data/lib/cells/rails/action_view.rb +0 -37
  48. data/rails/init.rb +0 -44
  49. data/rails_generators/cells_install/templates/tasks.rake +0 -6
  50. data/test/app/cells/a/another_state.html.erb +0 -1
  51. data/test/app/cells/a/existing_view.html.erb +0 -1
  52. data/test/app/cells/a/inherited_view.html.erb +0 -1
  53. data/test/app/cells/a/inherited_view.js.erb +0 -1
  54. data/test/app/cells/a/view_with_locals.html.erb +0 -1
  55. data/test/app/cells/a/view_with_render_call.html.erb +0 -1
  56. data/test/app/cells/b/existing_view.html.erb +0 -1
  57. data/test/app/cells/b/existing_view.js.erb +0 -1
  58. data/test/app/cells/b/layouts/metal.html.erb +0 -1
  59. data/test/app/cells/b/view_with_render_call.html.erb +0 -1
  60. data/test/app/cells/bassist/jam.html.erb +0 -3
  61. data/test/app/cells/bassist/play.html.erb +0 -1
  62. data/test/app/cells/cells_test_one/renamed_instance_view.html.erb +0 -1
  63. data/test/app/cells/cells_test_one/super_state.html.erb +0 -1
  64. data/test/app/cells/cells_test_one_cell.rb +0 -20
  65. data/test/app/cells/cells_test_two_cell.rb +0 -4
  66. data/test/app/cells/helper_using/state_using_application_helper.html.erb +0 -3
  67. data/test/app/cells/helper_using/state_with_automatic_helper_invocation.html.erb +0 -3
  68. data/test/app/cells/helper_using/state_with_helper_invocation.html.erb +0 -3
  69. data/test/app/cells/helper_using/state_with_helper_method_invocation.html.erb +0 -3
  70. data/test/app/cells/layouts/metal.html.erb +0 -1
  71. data/test/app/cells/my_child/hello.html.erb +0 -1
  72. data/test/app/cells/my_mother/bye.html.erb +0 -1
  73. data/test/app/cells/my_mother/hello.html.erb +0 -1
  74. data/test/app/cells/my_test/_broken_partial.html.erb +0 -1
  75. data/test/app/cells/my_test/_partial.html.erb +0 -1
  76. data/test/app/cells/my_test/state_with_instance_var.html.erb +0 -1
  77. data/test/app/cells/my_test/state_with_link_to.html.erb +0 -3
  78. data/test/app/cells/my_test/state_with_not_included_helper_method.html.erb +0 -8
  79. data/test/app/cells/my_test/view_containing_broken_partial.html.erb +0 -3
  80. data/test/app/cells/my_test/view_containing_nonexistant_partial.html.erb +0 -3
  81. data/test/app/cells/my_test/view_containing_partial.html.erb +0 -3
  82. data/test/app/cells/my_test/view_containing_partial_without_cell_name.html.erb +0 -3
  83. data/test/app/cells/my_test/view_in_local_test_views_dir.html.erb +0 -1
  84. data/test/app/cells/my_test/view_with_explicit_english_translation.en.html.erb +0 -1
  85. data/test/app/cells/my_test/view_with_explicit_english_translation.html.erb +0 -1
  86. data/test/app/cells/my_test/view_with_instance_var.html.erb +0 -4
  87. data/test/app/cells/really_module/nested/happy_state.html.erb +0 -1
  88. data/test/app/cells/really_module/nested_cell.rb +0 -11
  89. data/test/app/cells/simple/two_templates_state.html.mytpl +0 -1
  90. data/test/app/cells/simple_cell.rb +0 -7
  91. data/test/app/cells/test/beep.html.erb +0 -1
  92. data/test/app/cells/test/state_invoking_capture.html.erb +0 -7
  93. data/test/app/cells/test/state_invoking_content_for.html.erb +0 -7
  94. data/test/app/cells/test/state_invoking_content_for_twice.html.erb +0 -9
  95. data/test/app/cells/test/state_with_not_included_helper_method.html.erb +0 -8
  96. data/test/app/cells/two_helpers_including/state_using_another_helper.html.erb +0 -3
  97. data/test/bugs_test.rb +0 -23
  98. data/test/caching_test.rb +0 -270
  99. data/test/capture_helper_test.rb +0 -59
  100. data/test/cells_test.rb +0 -352
  101. data/test/rails_test.rb +0 -35
  102. data/test/render_test.rb +0 -305
  103. data/test/test_case_test.rb +0 -106
@@ -0,0 +1,74 @@
1
+ require '/home/nick/projects/rails/railties/lib/rails/test/isolation/abstract_unit'
2
+ #require 'rails/test/isolation/abstract_unit'
3
+
4
+ module ApplicationTests
5
+ class RouterTest < ActionController::TestCase#Test::Unit::TestCase
6
+ include ActiveSupport::Testing::Isolation
7
+
8
+
9
+ def app
10
+ #@app ||= begin
11
+ Rails.application
12
+ #end
13
+ end
14
+
15
+ context "A Rails app" do
16
+ setup do
17
+ build_app
18
+ FileUtils.rm_rf("#{app_path}/config/environments") # otherwise we get a undefined method `action_mailer' for #<Rails::Application::Configuration
19
+
20
+ require "#{app_path}/config/environment" # DISCUSS: introduce #initialize_rails?
21
+ boot_rails
22
+
23
+ app_file "config/routes.rb", <<-RUBY
24
+ AppTemplate::Application.routes.draw do |map|
25
+ match '/cell', :to => 'omg#index'
26
+ end
27
+ RUBY
28
+
29
+
30
+ require 'rack/test'
31
+ extend Rack::Test::Methods # needs @routes.
32
+ end
33
+
34
+ should "allow cells to use url_helpers" do
35
+ controller "omg", <<-RUBY
36
+ class OmgController < ActionController::Base
37
+ def index
38
+ render :text => render_cell(:bassist, :promote)
39
+ end
40
+ end
41
+ RUBY
42
+
43
+ BassistCell.class_eval do
44
+ def promote; render; end
45
+ end
46
+
47
+ assert ::Cell::Rails.view_context_class._routes, "Cells::Railtie initializer wasn't invoked."
48
+ #assert ! ::OmgController.new.respond_to?( :render_cell)
49
+
50
+ get "/cell"
51
+ assert_response :success
52
+ assert_equal "Find me at <a href=\"/cell\">vd.com</a>", last_response.body
53
+ end
54
+
55
+ should "allow cells to use #config" do
56
+ controller "omg", <<-RUBY
57
+ class OmgController < ActionController::Base
58
+ def index
59
+ render :text => render_cell(:bassist, :provoke)
60
+ end
61
+ end
62
+ RUBY
63
+
64
+ BassistCell.class_eval do
65
+ def provoke; render; end
66
+ end
67
+
68
+ get "/cell"
69
+ assert_response :success
70
+ assert_equal "That's me, naked <img alt=\"Me\" src=\"/images/me.png\" />", last_response.body
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+ require File.join(File.dirname(__FILE__), '../test_helper')
3
+
4
+ class RailsViewTest < ActiveSupport::TestCase
5
+ context "A cell view" do
6
+ context "calling render :partial" do
7
+ should "render the cell partial in bassist/dii" do
8
+ BassistCell.class_eval do
9
+ def compose; @partial = "dii"; render; end
10
+ end
11
+ assert_equal "Dumm Dii", render_cell(:bassist, :compose)
12
+ end
13
+
14
+ should "render the cell partial in bad_guitarist/dii" do
15
+ BassistCell.class_eval do
16
+ def compose; @partial = "bad_guitarist/dii"; render; end
17
+ end
18
+ assert_equal "Dumm Dooom", render_cell(:bassist, :compose)
19
+ end
20
+ end
21
+
22
+
23
+ end
24
+ end
@@ -1,51 +1,52 @@
1
1
  # encoding: utf-8
2
2
  require 'rubygems'
3
+ require 'test/unit'
4
+ require 'shoulda'
5
+
6
+ # wycats says...
3
7
  require 'bundler'
4
8
  Bundler.setup
5
9
 
6
10
 
7
- require 'test/unit'
8
- require 'active_support'
9
- require 'action_controller'
10
- require 'action_view'
11
- require 'shoulda'
12
- require 'active_support/test_case'
13
-
14
- # Require app's test_helper.rb if such exists.
15
- app_test_helper = if defined?(Rails)
16
- Rails.root.join('test', 'test_helper')
17
- else
18
- # Assuming we are in something like APP_ROOT/vendor/plugins/cells that is.
19
- File.expand_path(File.join(File.dirname(__FILE__), *%w[.. .. .. .. test test_helper])) rescue nil
20
- end
21
- require app_test_helper if File.exist?(app_test_helper)
22
-
23
11
  ENV['RAILS_ENV'] = 'test'
24
- test_app_path = File.expand_path(File.join(File.dirname(__FILE__), 'app').to_s)
25
12
 
26
- # Important: Load any ApplicationHelper before loading cells.
27
- Dir[File.join(test_app_path, *%w[helpers ** *.rb]).to_s].each { |f| require f }
13
+ gem_dir = File.join(File.dirname(__FILE__), '..')
14
+ test_app_dir = File.join(gem_dir, 'test', 'app')
15
+
16
+ # Important: Load any test ApplicationHelper before loading cells.
17
+ Dir[File.join(test_app_dir, *%w[helpers ** *.rb]).to_s].each { |f| require f }
28
18
 
29
19
  require 'cells'
30
20
 
31
- Cell::Base.add_view_path File.join(test_app_path, 'cells')
32
- Cell::Base.add_view_path File.join(test_app_path, 'cells', 'layouts')
21
+ Cell::Rails.append_view_path(File.join(test_app_dir, 'cells'))
22
+ Cell::Rails.append_view_path(File.join(test_app_dir, 'cells', 'layouts'))
23
+
33
24
 
34
25
  # Now, load the rest.
35
- Dir[File.join(test_app_path, *%w[controllers ** *.rb]).to_s].each { |f| require f }
26
+ require File.join(test_app_dir, 'controllers', 'cells_test_controller')
27
+ require File.join(test_app_dir, 'controllers', 'musician_controller')
36
28
 
37
29
  # We need to setup a fake route for the controller tests.
38
- ActionController::Routing::Routes.draw do |map|
39
- map.connect 'cells_test/:action', :controller => 'cells_test'
40
- end
30
+ #ActionController::Routing::Routes.draw do |map|
31
+ # map.connect 'cells_test/:action', :controller => 'cells_test'
32
+ #end
33
+ #ActionController::Routing::Routes.draw do |map|
34
+ # map.connect 'musician/:action', :controller => 'musician'
35
+ #end
41
36
 
42
- # Load test support files.
43
- Dir[File.join(File.dirname(__FILE__), *%w[support ** *.rb]).to_s].each { |f| require f }
44
- require File.join(File.dirname(__FILE__), *%w[.. lib cells assertions_helper])
37
+ Dir[File.join(gem_dir, 'test', 'support', '**', '*.rb')].each { |f| require f }
38
+ require File.join(gem_dir, 'lib', 'cells', 'assertions_helper')
45
39
 
40
+ # Extend TestCase.
46
41
  ActiveSupport::TestCase.class_eval do
47
42
  include Cells::AssertionsHelper
48
43
  include Cells::InternalAssertionsHelper
49
44
  end
50
45
 
51
- require File.join(File.dirname(__FILE__), *%w[app cells bassist_cell])
46
+ # Enable dynamic states so we can do Cell.class_eval { def ... } at runtime.
47
+ class Cell::Rails
48
+ def action_method?(*); true; end
49
+ end
50
+
51
+ require File.join(test_app_dir, 'cells', 'bassist_cell')
52
+ require File.join(test_app_dir, 'cells', 'bad_guitarist_cell')
metadata CHANGED
@@ -1,12 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cells
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 350106850
5
+ prerelease: true
5
6
  segments:
6
7
  - 3
7
- - 3
8
- - 10
9
- version: 3.3.10
8
+ - 4
9
+ - 0
10
+ - beta1
11
+ version: 3.4.0.beta1
10
12
  platform: ruby
11
13
  authors:
12
14
  - Nick Sutterer
@@ -14,165 +16,74 @@ autorequire:
14
16
  bindir: bin
15
17
  cert_chain: []
16
18
 
17
- date: 2011-11-08 00:00:00 -02:00
19
+ date: 2010-07-23 00:00:00 +02:00
18
20
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rails
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 3
31
- version: "2.3"
32
- type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: shoulda
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- version: "0"
45
- type: :development
46
- version_requirements: *id002
47
- - !ruby/object:Gem::Dependency
48
- name: active_helper
49
- prerelease: false
50
- requirement: &id003 !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- version: "0"
58
- type: :development
59
- version_requirements: *id003
60
- description: Cells are view components for Rails. They are lightweight controllers, can be rendered in views and thus provide an elegant and fast way for encapsulation and component-orientation.
61
- email:
62
- - apotonick@gmail.com
21
+ dependencies: []
22
+
23
+ description: Cells are lightweight controllers for Rails and can be rendered in controllers and views, providing an elegant and fast way for encapsulation and component-orientation.
24
+ email: apotonick@gmail.com
63
25
  executables: []
64
26
 
65
27
  extensions: []
66
28
 
67
- extra_rdoc_files: []
68
-
29
+ extra_rdoc_files:
30
+ - README.rdoc
69
31
  files:
70
- - .gitignore
71
32
  - CHANGES
72
33
  - Gemfile
73
34
  - MIT-LICENSE
74
35
  - README.rdoc
75
36
  - Rakefile
76
- - about.yml
77
- - cells.gemspec
78
37
  - lib/cell.rb
38
+ - lib/cell/active_helper.rb
39
+ - lib/cell/base.rb
40
+ - lib/cell/base_methods.rb
41
+ - lib/cell/caching.rb
42
+ - lib/cell/rails.rb
79
43
  - lib/cells.rb
80
44
  - lib/cells/assertions_helper.rb
81
- - lib/cells/cell.rb
82
- - lib/cells/cell/active_helper.rb
83
- - lib/cells/cell/base.rb
84
- - lib/cells/cell/caching.rb
85
- - lib/cells/cell/test_case.rb
86
- - lib/cells/cell/view.rb
87
45
  - lib/cells/helpers.rb
88
46
  - lib/cells/helpers/capture_helper.rb
89
47
  - lib/cells/rails.rb
90
- - lib/cells/rails/action_controller.rb
91
- - lib/cells/rails/action_view.rb
92
48
  - lib/cells/version.rb
93
- - rails/init.rb
94
49
  - rails_generators/cell/USAGE
95
50
  - rails_generators/cell/cell_generator.rb
96
51
  - rails_generators/cell/templates/cell.rb
97
52
  - rails_generators/cell/templates/cell_test.rb
98
- - rails_generators/cell/templates/view.html.erb
99
53
  - rails_generators/cell/templates/view.html.haml
100
54
  - rails_generators/cells_install/USAGE
101
55
  - rails_generators/cells_install/cells_install_generator.rb
102
56
  - rails_generators/cells_install/templates/initializer.rb
103
- - rails_generators/cells_install/templates/tasks.rake
57
+ - rails_generators/erb/cell_generator.rb
58
+ - rails_generators/erb/templates/view.html.erb
104
59
  - test/active_helper_test.rb
105
- - test/app/cells/a/another_state.html.erb
106
- - test/app/cells/a/existing_view.html.erb
107
- - test/app/cells/a/inherited_view.html.erb
108
- - test/app/cells/a/inherited_view.js.erb
109
- - test/app/cells/a/view_with_locals.html.erb
110
- - test/app/cells/a/view_with_render_call.html.erb
111
- - test/app/cells/b/existing_view.html.erb
112
- - test/app/cells/b/existing_view.js.erb
113
- - test/app/cells/b/layouts/metal.html.erb
114
- - test/app/cells/b/view_with_render_call.html.erb
115
- - test/app/cells/bassist/jam.html.erb
116
- - test/app/cells/bassist/play.html.erb
60
+ - test/base_methods_test.rb
61
+ - test/assertions_helper_test.rb
62
+ - test/rails/router_test.rb
63
+ - test/rails/view_test.rb
64
+ - test/rails/capture_test.rb
65
+ - test/rails/integration_test.rb
66
+ - test/rails/render_test.rb
67
+ - test/rails/cells_test.rb
68
+ - test/rails/caching_test.rb
69
+ - test/cell_generator_test.rb
70
+ - test/test_helper.rb
71
+ - test/support/internal_assertions_helper.rb
72
+ - test/helper_test.rb
73
+ - test/app/controllers/musician_controller.rb
74
+ - test/app/controllers/cells_test_controller.rb
117
75
  - test/app/cells/bassist_cell.rb
118
- - test/app/cells/cells_test_one/renamed_instance_view.html.erb
119
- - test/app/cells/cells_test_one/super_state.html.erb
120
- - test/app/cells/cells_test_one_cell.rb
121
- - test/app/cells/cells_test_two_cell.rb
122
- - test/app/cells/helper_using/state_using_application_helper.html.erb
123
- - test/app/cells/helper_using/state_with_automatic_helper_invocation.html.erb
124
- - test/app/cells/helper_using/state_with_helper_invocation.html.erb
125
- - test/app/cells/helper_using/state_with_helper_method_invocation.html.erb
126
- - test/app/cells/layouts/metal.html.erb
127
- - test/app/cells/my_child/hello.html.erb
128
- - test/app/cells/my_mother/bye.html.erb
129
- - test/app/cells/my_mother/hello.html.erb
130
- - test/app/cells/my_test/_broken_partial.html.erb
131
- - test/app/cells/my_test/_partial.html.erb
132
- - test/app/cells/my_test/state_with_instance_var.html.erb
133
- - test/app/cells/my_test/state_with_link_to.html.erb
134
- - test/app/cells/my_test/state_with_not_included_helper_method.html.erb
135
- - test/app/cells/my_test/view_containing_broken_partial.html.erb
136
- - test/app/cells/my_test/view_containing_nonexistant_partial.html.erb
137
- - test/app/cells/my_test/view_containing_partial.html.erb
138
- - test/app/cells/my_test/view_containing_partial_without_cell_name.html.erb
139
- - test/app/cells/my_test/view_in_local_test_views_dir.html.erb
140
- - test/app/cells/my_test/view_with_explicit_english_translation.en.html.erb
141
- - test/app/cells/my_test/view_with_explicit_english_translation.html.erb
142
- - test/app/cells/my_test/view_with_instance_var.html.erb
143
- - test/app/cells/really_module/nested/happy_state.html.erb
144
- - test/app/cells/really_module/nested_cell.rb
145
- - test/app/cells/simple/two_templates_state.html.mytpl
146
- - test/app/cells/simple_cell.rb
147
- - test/app/cells/test/beep.html.erb
148
- - test/app/cells/test/state_invoking_capture.html.erb
149
- - test/app/cells/test/state_invoking_content_for.html.erb
150
- - test/app/cells/test/state_invoking_content_for_twice.html.erb
151
- - test/app/cells/test/state_with_not_included_helper_method.html.erb
152
76
  - test/app/cells/test_cell.rb
153
- - test/app/cells/two_helpers_including/state_using_another_helper.html.erb
154
- - test/app/controllers/cells_test_controller.rb
77
+ - test/app/cells/bad_guitarist_cell.rb
155
78
  - test/app/helpers/application_helper.rb
156
79
  - test/app/helpers/helper_using_cell_helper.rb
157
- - test/assertions_helper_test.rb
158
- - test/bugs_test.rb
159
- - test/caching_test.rb
160
- - test/capture_helper_test.rb
161
- - test/cell_generator_test.rb
162
- - test/cells_test.rb
163
- - test/helper_test.rb
164
- - test/rails_test.rb
165
- - test/render_test.rb
166
- - test/support/internal_assertions_helper.rb
167
- - test/test_case_test.rb
168
- - test/test_helper.rb
169
80
  has_rdoc: true
170
81
  homepage: http://cells.rubyforge.org
171
82
  licenses: []
172
83
 
173
84
  post_install_message:
174
- rdoc_options: []
175
-
85
+ rdoc_options:
86
+ - --charset=UTF-8
176
87
  require_paths:
177
88
  - lib
178
89
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -180,23 +91,47 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
91
  requirements:
181
92
  - - ">="
182
93
  - !ruby/object:Gem::Version
94
+ hash: 3
183
95
  segments:
184
96
  - 0
185
97
  version: "0"
186
98
  required_rubygems_version: !ruby/object:Gem::Requirement
187
99
  none: false
188
100
  requirements:
189
- - - ">="
101
+ - - ">"
190
102
  - !ruby/object:Gem::Version
103
+ hash: 25
191
104
  segments:
192
- - 0
193
- version: "0"
105
+ - 1
106
+ - 3
107
+ - 1
108
+ version: 1.3.1
194
109
  requirements: []
195
110
 
196
111
  rubyforge_project:
197
112
  rubygems_version: 1.3.7
198
113
  signing_key:
199
114
  specification_version: 3
200
- summary: View Components for Rails.
201
- test_files: []
202
-
115
+ summary: Cells are lightweight controllers for Rails and can be rendered in controllers and views, providing an elegant and fast way for encapsulation and component-orientation.
116
+ test_files:
117
+ - test/active_helper_test.rb
118
+ - test/base_methods_test.rb
119
+ - test/assertions_helper_test.rb
120
+ - test/rails/router_test.rb
121
+ - test/rails/view_test.rb
122
+ - test/rails/capture_test.rb
123
+ - test/rails/integration_test.rb
124
+ - test/rails/render_test.rb
125
+ - test/rails/cells_test.rb
126
+ - test/rails/caching_test.rb
127
+ - test/cell_generator_test.rb
128
+ - test/test_helper.rb
129
+ - test/support/internal_assertions_helper.rb
130
+ - test/helper_test.rb
131
+ - test/app/controllers/musician_controller.rb
132
+ - test/app/controllers/cells_test_controller.rb
133
+ - test/app/cells/bassist_cell.rb
134
+ - test/app/cells/test_cell.rb
135
+ - test/app/cells/bad_guitarist_cell.rb
136
+ - test/app/helpers/application_helper.rb
137
+ - test/app/helpers/helper_using_cell_helper.rb