zilkey (owner)

Revisions

gist: 59598 Download_button fork
public
Public Clone URL: git://gist.github.com/59598.git
Embed All Files: show embed
Crazy inline specs.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class Foo
  def bar
    "baz"
  end
end
 
if __FILE__ == $0
  require 'rubygems'
  require 'spec'
 
  describe Foo do
    describe "#bar" do
      it "should return baz" do
        Foo.new.bar.should == "baz"
      end
    end
  end
end