Skip to content

Commit e709660

Browse files
committed
test POST params are getting parsed properly
1 parent e530d6a commit e709660

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

spec/integration/echo_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,13 @@
2222
end
2323
end
2424
end
25+
26+
it 'echos POST data' do
27+
with_api(Echo) do
28+
post_request({:body => {'echo' => 'test'}}, err) do |c|
29+
b = Yajl::Parser.parse(c.response)
30+
b['response'].should == 'test'
31+
end
32+
end
33+
end
2534
end

0 commit comments

Comments
 (0)