Created
January 17, 2013 16:32
-
-
Save nikhaldi/4557302 to your computer and use it in GitHub Desktop.
Testing gist embedding in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Whether a given string includes any whitespace. | |
def includes_whitespace?(string) | |
not string.match(/\s/).nil? | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Failure: | |
test_includes_whitespace(BlogSupportTest) [blog_support_code.rb:17]: | |
Failed assertion, no message given. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment