Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (17 sloc) 0.52 kB
ffa8d71 @stefl a screengrab
authored
1 require 'rspec'
2 require 'json'
3 require 'pretty_printer'
4 require 'textmate_puts_helper'
5
6 class MyClass
7 include PrettyPrinter
8
9 def as_json
10 {:id => 1, :description => 'oddness', :emotion => 'confused'}
11 end
12 end
13
14 describe "Meaningful debugging output in Textmate" do
15
16 it "should actually display objects not just the # symbol" do
17 puts "Let's see what is going on here..."
18 pp MyClass.new
19 MyClass.new.as_json.should be_nil # force rspec to fail so you can see how this is useful
20 end
21
22 end
Something went wrong with that request. Please try again.