Changeset 419

Show
Ignore:
Timestamp:
08/14/06 07:45:02 (2 years ago)
Author:
lazyatom
Message:

Added stuff for multipart email tests, code mixing tests, etc

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • test/engines/rails_1.1/app/controllers/engines_controller.rb

    r402 r419  
    11class EnginesController < ApplicationController 
    22end 
     3puts 'loading engines controller' 
  • test/engines/rails_1.1/app/models/notify_mail.rb

    r254 r419  
    66    body(:name => txt) 
    77  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 
    822end 
  • 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%> 
    24 
    35Carlito'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  
    1313  def test_engine_javascript_helpers 
    1414    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?" } 
    1616    assert_tag :script, :attributes => { :src => "/engine_files/alpha_engine/javascripts/file_2.js?" } 
    1717  end 
     
    1919  def test_engine_stylesheet_helpers 
    2020    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?" } 
    2222    assert_tag :link, :attributes => { :href => "/engine_files/alpha_engine/stylesheets/file_2.css?" } 
    2323  end 
  • test/engines/rails_1.1/test/unit/action_mailer_test.rb

    r254 r419  
    99    } 
    1010  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 
    1118end 
  • 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
  • test/engines/rails_1.1/vendor/plugins/alpha_engine/app/controllers/al_pacino_controller.rb

    r262 r419  
    1010   
    1111  def scarface 
     12    @in_application = false 
    1213  end 
    1314   
  • 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 %> 
    24 
    35Carlito'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  
    44load File.join(Engines.config(:root), "engines", "lib", "engines", "testing_extensions.rb") 
    55 
     6Engines.disable_app_views_loading = true 
     7Engines.disable_app_code_mixing = true     
     8 
    69# set up the fixtures location 
    710puts "setting fixture path for Apples"