File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Gem::Specification.new do |s|
1515 s . add_dependency ( 'actionmailer' , '>= 3.0.0' )
1616 s . add_dependency ( 'premailer' , '>= 1.11.0' )
1717 s . add_dependency ( 'nokogiri' , '>= 1.7.0' )
18+ s . add_development_dependency ( 'test-unit' )
1819 s . add_development_dependency ( 'mocha' , '>= 0.10.0' )
1920end
2021
Original file line number Diff line number Diff line change 1919
2020require 'active_support/core_ext/kernel/reporting'
2121
22- require 'active_support/core_ext/string/encoding'
23- if "ruby" . encoding_aware?
24- # These are the normal settings that will be set up by Railties
25- # TODO: Have these tests support other combinations of these values
26- silence_warnings do
27- Encoding . default_internal = "UTF-8"
28- Encoding . default_external = "UTF-8"
29- end
22+ # These are the normal settings that will be set up by Railties
23+ # TODO: Have these tests support other combinations of these values
24+ silence_warnings do
25+ Encoding . default_internal = "UTF-8"
26+ Encoding . default_external = "UTF-8"
3027end
3128
3229lib = File . expand_path ( "#{ File . dirname ( __FILE__ ) } /../lib" )
Original file line number Diff line number Diff line change @@ -131,13 +131,13 @@ def test_preservation_of_attachments
131131
132132 def test_alternative_content_type
133133 mail = HelperMailer . use_inline_css_hook_with_text_and_html_parts . deliver
134- assert_match /multipart\/ alternative/ , mail . content_type
134+ assert_match ( /multipart\/ alternative/ , mail . content_type )
135135 end
136136
137137 def test_mixed_content_type
138138 File . stubs ( :read ) . returns ( "world" )
139139 mail = HelperMailer . with_attachment
140140 m = ActionMailer ::InlineCssHook . delivering_email ( mail . deliver )
141- assert_equal "multipart/mixed" , m . content_type
141+ assert_equal ( "multipart/mixed" , m . content_type )
142142 end
143143end
You can’t perform that action at this time.
0 commit comments