Changeset 419
- Timestamp:
- 08/14/06 07:45:02 (2 years ago)
- Files:
-
- test/engines/rails_1.1/app/controllers/al_pacino_controller.rb (added)
- test/engines/rails_1.1/app/controllers/engines_controller.rb (modified) (1 diff)
- test/engines/rails_1.1/app/models/notify_mail.rb (modified) (1 diff)
- test/engines/rails_1.1/app/views/al_pacino/carlitos_way.rhtml (modified) (1 diff)
- test/engines/rails_1.1/app/views/engines/javascripts.rhtml (modified) (1 diff)
- test/engines/rails_1.1/app/views/engines/stylesheets.rhtml (modified) (1 diff)
- test/engines/rails_1.1/app/views/notify_mail/multipart_html.rhtml (added)
- test/engines/rails_1.1/app/views/notify_mail/multipart_plain.rhtml (added)
- test/engines/rails_1.1/test/functional/action_view_helpers_test.rb (modified) (2 diffs)
- test/engines/rails_1.1/test/unit/action_mailer_test.rb (modified) (1 diff)
- test/engines/rails_1.1/vendor (modified) (1 prop)
- test/engines/rails_1.1/vendor/plugins/alpha_engine/app/controllers/al_pacino_controller.rb (modified) (1 diff)
- test/engines/rails_1.1/vendor/plugins/alpha_engine/app/views/al_pacino/carlitos_way.rhtml (modified) (1 diff)
- test/engines/rails_1.1/vendor/plugins/alpha_engine/test/functional (added)
- test/engines/rails_1.1/vendor/plugins/alpha_engine/test/functional/al_pacino_controller_test.rb (added)
- test/engines/rails_1.1/vendor/plugins/alpha_engine/test/test_helper.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
test/engines/rails_1.1/app/controllers/engines_controller.rb
r402 r419 1 1 class EnginesController < ApplicationController 2 2 end 3 puts 'loading engines controller' test/engines/rails_1.1/app/models/notify_mail.rb
r254 r419 6 6 body(:name => txt) 7 7 end 8 9 def multipart() 10 recipients 'some_address@email.com' 11 subject 'multi part email' 12 from "another_user@email.com" 13 # render the HTML card 14 @content_type = 'multipart/alternative' 15 part('text/html') do |p| 16 p.body = render_message('multipart_html', {}) 17 end 18 part("text/plain") do |p| 19 p.body = render_message("multipart_plain", {}) 20 end 21 end 8 22 end test/engines/rails_1.1/app/views/al_pacino/carlitos_way.rhtml
r262 r419 1 <% $quote = 'See you know my name is Benny Blanco from the Bronx.' %> 1 <% $quote = 'See you know my name is Benny Blanco from the Bronx.' 2 $view_from = 'application' 3 %> 2 4 3 5 Carlito's Way... in the application.... it's the application way... of Carliiiiiiiiiiito.... test/engines/rails_1.1/app/views/engines/javascripts.rhtml
r402 r419 1 <%= engine_javascript 'alpha', 'file _1', 'file_2' %>1 <%= engine_javascript 'alpha', 'file.1.js', 'file_2' %> test/engines/rails_1.1/app/views/engines/stylesheets.rhtml
r402 r419 1 <%= engine_stylesheet 'alpha', 'file _1', 'file_2' %>1 <%= engine_stylesheet 'alpha', 'file.1.css', 'file_2' %> test/engines/rails_1.1/test/functional/action_view_helpers_test.rb
r402 r419 13 13 def test_engine_javascript_helpers 14 14 get :javascripts 15 assert_tag :script, :attributes => { :src => "/engine_files/alpha_engine/javascripts/file _1.js?" }15 assert_tag :script, :attributes => { :src => "/engine_files/alpha_engine/javascripts/file.1.js?" } 16 16 assert_tag :script, :attributes => { :src => "/engine_files/alpha_engine/javascripts/file_2.js?" } 17 17 end … … 19 19 def test_engine_stylesheet_helpers 20 20 get :stylesheets 21 assert_tag :link, :attributes => { :href => "/engine_files/alpha_engine/stylesheets/file _1.css?" }21 assert_tag :link, :attributes => { :href => "/engine_files/alpha_engine/stylesheets/file.1.css?" } 22 22 assert_tag :link, :attributes => { :href => "/engine_files/alpha_engine/stylesheets/file_2.css?" } 23 23 end test/engines/rails_1.1/test/unit/action_mailer_test.rb
r254 r419 9 9 } 10 10 end 11 12 def test_multipart_mails 13 m = NotifyMail.create_multipart 14 assert_equal 2, m.parts.length 15 assert_equal 'the html part of the email', m.parts[0].body 16 assert_equal 'the plaintext part of the email', m.parts[1].body 17 end 11 18 end test/engines/rails_1.1/vendor
- Property svn:externals changed from
rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-4
to
rails http://dev.rubyonrails.org/svn/rails/tags/rel_1-1-5
- Property svn:externals changed from
test/engines/rails_1.1/vendor/plugins/alpha_engine/app/controllers/al_pacino_controller.rb
r262 r419 10 10 11 11 def scarface 12 @in_application = false 12 13 end 13 14 test/engines/rails_1.1/vendor/plugins/alpha_engine/app/views/al_pacino/carlitos_way.rhtml
r262 r419 1 <% $quote = '' %> 1 <% $quote = '' 2 $view_from = 'engine' 3 %> 2 4 3 5 Carlito's Way... in the Engine... oh yeah!.... it's the engine way... of Carliiiiiiiiiiito.... test/engines/rails_1.1/vendor/plugins/alpha_engine/test/test_helper.rb
r341 r419 4 4 load File.join(Engines.config(:root), "engines", "lib", "engines", "testing_extensions.rb") 5 5 6 Engines.disable_app_views_loading = true 7 Engines.disable_app_code_mixing = true 8 6 9 # set up the fixtures location 7 10 puts "setting fixture path for Apples"
