Skip to content

Commit f333847

Browse files
committed
minor upgrades
1 parent 4224a13 commit f333847

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

actionmailer_inline_css.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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')
1920
end
2021

test/abstract_unit.rb

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@
1919

2020
require '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"
3027
end
3128

3229
lib = File.expand_path("#{File.dirname(__FILE__)}/../lib")

test/inline_css_hook_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
143143
end

0 commit comments

Comments
 (0)