Skip to content

Commit

Permalink
Avoid pp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ford committed Jun 6, 2010
1 parent c14e6c0 commit 24ce22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions bin/poison
Expand Up @@ -60,10 +60,8 @@ class PoisonScript
def asts def asts
return if @asts.empty? return if @asts.empty?


require 'pp'

compiler = Poison::Compiler.new @asts.join("\n") compiler = Poison::Compiler.new @asts.join("\n")
pp compiler.parse.to_sexp p compiler.parse.to_sexp
end end


def script def script
Expand Down
6 changes: 2 additions & 4 deletions spec/custom/matchers/parse_as.rb
@@ -1,5 +1,3 @@
require 'pp'

class ParseAsMatcher class ParseAsMatcher
def initialize(expected) def initialize(expected)
@expected = expected @expected = expected
Expand All @@ -11,8 +9,8 @@ def matches?(actual)
end end


def failure_message def failure_message
["Expected:\n#{@actual.pretty_inspect}\n", ["Expected:\n#{@actual.inspect}\n",
"to equal:\n#{@expected.pretty_inspect}"] "to equal:\n#{@expected.inspect}"]
end end
end end


Expand Down

0 comments on commit 24ce22a

Please sign in to comment.