test/test_tweetskim.rb in tweetskim-0.6.0 vs test/test_tweetskim.rb in tweetskim-0.7.0
- old
+ new
@@ -12,21 +12,11 @@
user = Twitter::User.new
user.stubs(:name).returns "Mock User"
status.stubs(:user).returns user
return status
end
-
- def test_column_creation
- tweets = [t("Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."), t("Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. "), t("Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")]
-
- expected = "--\e[1;34mMock User\e[0m-- Excepteur sint\noccaecat cupidatat non proident, sunt\nin culpa qui officia deserunt mollit\nanim id est laborum.\n\n\n--\e[1;34mMock User\e[0m-- Duis aute\nirure dolor in reprehenderit in\nvoluptate velit esse cillum dolore eu\nfugiat nulla pariatur.\n\n\n--\e[1;34mMock User\e[0m-- Ut enimad\nminim veniam, quis nostrud exercitation\nullamco laboris nisi ut aliquip ex ea\ncommodo consequat.\n"
- actual = @f.column(tweets, {:width => 40})
-
- assert_equal expected, actual
- end
-
def test_line_creation
tweets = [t("Ut enimad minim veniam, quis nostrud."), t("Duis aute irure dolor in reprehenderit"), t("Excepteur sint occaecat cupidatat non proident")]
expected = <<LINES
--Mock User-- Excepteur sint occaecat cupidatat non proident
@@ -36,42 +26,8 @@
actual = @f.lines(tweets);
assert_equal expected, actual
end
-
-
- def test_whitespace_padding
-
- col = <<COL
-aaaaaa
-aaaaa
-aaaa
-aaa
-aa
-a
-
-COL
-
- expected = <<COL
-aaaaaa
-aaaaa
-aaaa
-aaa
-aa
-a
-
-COL
-
- assert_equal expected, @f.pad(col, 6)
- end
-
- def test_settings_persistence
-
-
-
- end
-
-
end