Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Whitespace fascist!

  • Loading branch information...
commit 8d2de6fb15094edb09527af696e1657094498af1 1 parent 886c61c
@monde authored
View
2  dev_tools/debug_sprint_nokogiri_parsing.rb
@@ -26,7 +26,7 @@
text = doc.search("/html/body//pre").first.inner_html
puts "TEXT: #{text}"
-# just see what they say this MMS is it really doesn't mean anything, the
+# just see what they say this MMS is it really doesn't mean anything, the
# content is in faux image with a RECIPIENT in its URI path
text = doc.search("/html/body//tr[2]/td//b")
case text.text
View
2  test/fixtures/handsets.yml
@@ -1,4 +1,4 @@
----
+---
- - Apple
- iPhone
- - Apple
View
4 test/test_mms2r_media.rb
@@ -213,7 +213,7 @@ def test_transform_text_plain
assert_equal [type, text], mms.transform_text(type, "Ignore this part, " + text)
# chaining transforms
- mms.expects(:config).at_least_once.returns({'transform' => {type => [[/(hello)/, 'world'],
+ mms.expects(:config).at_least_once.returns({'transform' => {type => [[/(hello)/, 'world'],
[/(world)/, 'mars']]}})
assert_equal [type, 'mars'], mms.transform_text(type, text)
@@ -710,7 +710,7 @@ def test_process_when_yielding_to_a_block
mms.process do |type, files|
assert_equal 1, files.size
assert_equal true, type == 'text/plain' || type == 'text/html'
- assert_equal true, File.basename(files.first) == 'message.txt' ||
+ assert_equal true, File.basename(files.first) == 'message.txt' ||
File.basename(files.first) == 'message.html'
assert_equal true, File::exist?(files.first)
end
View
10 test/test_pm_sprint_com.rb
@@ -38,7 +38,7 @@ def mock_sprint_purged_image(message_id)
{ "User-Agent" => MMS2R::Media::USER_AGENT }
).once.returns(response)
end
-
+
def mock_sprint_ajax
response = mock('response')
body = mock('body')
@@ -85,8 +85,8 @@ def mock_sprint_ajax_purged
kind_of(String),
{ "User-Agent" => MMS2R::Media::USER_AGENT }
).twice.returns(response)
- end
-
+ end
+
def test_mms_should_have_text
mail = mail('sprint-text-01.mail')
mms = MMS2R::Media.new(mail)
@@ -247,7 +247,7 @@ def test_message_is_missing_in_mail
mms.purge
end
-
+
def test_message_is_missing_in_mail_purged_from_content_server
# this test is questionable
mail = mail('sprint-image-missing-message.mail')
@@ -261,7 +261,7 @@ def test_message_is_missing_in_mail_purged_from_content_server
mms.purge
end
-
+
def test_image_should_be_purged_from_content_server
mail = mail('sprint-image-01.mail')
mock_sprint_purged_image(mail.message_id)
Please sign in to comment.
Something went wrong with that request. Please try again.