Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid pp.

  • Loading branch information...
commit 24ce22a1997829b93634589396c2f99dcc358b88 1 parent c14e6c0
@brixen authored
Showing with 3 additions and 7 deletions.
  1. +1 −3 bin/poison
  2. +2 −4 spec/custom/matchers/parse_as.rb
View
4 bin/poison
@@ -60,10 +60,8 @@ class PoisonScript
def asts
return if @asts.empty?
- require 'pp'
-
compiler = Poison::Compiler.new @asts.join("\n")
- pp compiler.parse.to_sexp
+ p compiler.parse.to_sexp
end
def script
View
6 spec/custom/matchers/parse_as.rb
@@ -1,5 +1,3 @@
-require 'pp'
-
class ParseAsMatcher
def initialize(expected)
@expected = expected
@@ -11,8 +9,8 @@ def matches?(actual)
end
def failure_message
- ["Expected:\n#{@actual.pretty_inspect}\n",
- "to equal:\n#{@expected.pretty_inspect}"]
+ ["Expected:\n#{@actual.inspect}\n",
+ "to equal:\n#{@expected.inspect}"]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.