Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updating docs

  • Loading branch information...
commit 1f39a4e4fc43d9a03fbf6a9b40eafa827dfeb528 1 parent 261c51d
Christopher Burnett authored
Showing with 14 additions and 5 deletions.
  1. +14 −5 README.md
19 README.md
View
@@ -8,11 +8,15 @@
### Usage ###
+ require 'spec_helper'
+
describe Pathy do
before :all do
-
- Object.pathy!
-
+
+ # add the helper methods to any object.
+ # this can be called on any class.
+ Object.pathy!
+
@json = %[
{
"string" : "barr",
@@ -72,6 +76,10 @@
@obj.has_json_path?('hash.one.foo').should be_false
end
+ it "should work as rspec matcher" do
+ @obj.should have_json_path "hash.one"
+ end
+
end
@@ -110,7 +118,8 @@
end
end
-
+
+
##Note on Patches/Pull Requests
@@ -124,4 +133,4 @@
## Copyright
-Copyright (c) 2011 Christopher Burnett. See LICENSE for details.
+Copyright (c) 2011 Christopher Burnett. See LICENSE for details.
Please sign in to comment.
Something went wrong with that request. Please try again.