Commit f7972e6d authored by Sam Lown's avatar Sam Lown
Browse files

Adding missing encode_json method

parent 145233b2
......@@ -40,7 +40,7 @@ module CouchRest
def_delegators :@_attributes, :to_a, :==, :eql?, :keys, :values, :each,
:reject, :reject!, :empty?, :clear, :merge, :merge!,
:as_json, :to_json
:encode_json, :as_json, :to_json
def []=(key, value)
@_attributes[key.to_s] = value
......@@ -32,7 +32,8 @@ describe CouchRest::Document do
describe "hash methods" do
it "should respond to forwarded hash methods" do
@doc = => 'bar')
[:to_a, :==, :eql?, :keys, :values, :each, :reject, :reject!, :empty?, :clear, :merge, :merge!, :as_json, :to_json].each do |call|
[:to_a, :==, :eql?, :keys, :values, :each, :reject, :reject!, :empty?,
:clear, :merge, :merge!, :encode_json, :as_json, :to_json].each do |call|
@doc.should respond_to(call)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment