rocking_chair 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,10 +2,15 @@ module RockingChair
2
2
  module HttpAdapter
3
3
 
4
4
  def http_adapter
5
+ unless @_restclient
6
+ @_restclient = Object.new
7
+ @_restclient.extend(RestClientAdapter::API)
8
+ end
9
+
5
10
  if RockingChair.enabled?
6
11
  RockingChair::CouchRestHttpAdapter
7
12
  else
8
- RestClientAdapter::API
13
+ @_restclient
9
14
  end
10
15
  end
11
16
 
@@ -271,6 +271,14 @@ class SimplyStoredTest < Test::Unit::TestCase
271
271
 
272
272
  end
273
273
 
274
+ context "when deleting" do
275
+ should "delete the doc" do
276
+ user = User.new(:firstname => 'Bart', :lastname => 'S')
277
+ assert user.save
278
+ assert user.delete
279
+ end
280
+ end
281
+
274
282
  context "when deleting all design docs" do
275
283
  should "reset all design docs" do
276
284
  User.find_all_by_firstname('a')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocking_chair
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Weiss