shayarnett (owner)

Revisions

gist: 36045 Download_button fork
public
Public Clone URL: git://gist.github.com/36045.git
Embed All Files: show embed
test.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'open-uri'
require 'test/unit'
 
class WhenDoITest < Test::Unit::TestCase
  def test_all_the_fucking_time
    body = open("http://whendoitest.com").read
    assert_match(/All The Fucking Time/,body)
  end
end
 
# =>
# >> Loaded suite -
# >> Started
# >> .
# >> Finished in 0.195207 seconds.
# >>
# >> 1 tests, 1 assertions, 0 failures, 0 errors