kastner (owner)

Revisions

gist: 178010 Download_button fork
public
Public Clone URL: git://gist.github.com/178010.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
18
19
20
require 'rubygems'
require 'context'
require 'matchy'
 
class TestIt < Test::Unit::TestCase
  describe "Something" do
    it "should be a string" do
      string = "Hello"
      assert_kind_of String, string
    end
  end
  context "Something" do
    should "should be a string" do
      string = "Hello"
      assert_kind_of String, string
    end
  end
end
 
=> 2 tests, 2 assertions, 0 failures, 0 errors