beanstalk_farmer 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ require 'multi_json'
2
+
1
3
  module BeanstalkFarmer
2
4
  # Manages configuration settings and defaults.
3
5
  #
@@ -1,3 +1,3 @@
1
1
  module BeanstalkFarmer
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -22,4 +22,17 @@ describe BeanstalkFarmer::Config do
22
22
  described_class.test_setting.should == true
23
23
  end
24
24
  end
25
+
26
+ describe '#json_engine' do
27
+ it 'is the engine set for MultiJson' do
28
+ described_class.json_engine.should == MultiJson.engine
29
+ end
30
+ end
31
+
32
+ describe '#json_engine=' do
33
+ it 'sets the JSON engine of choice on MultiJson' do
34
+ MultiJson.should_receive(:engine=).with(:yajl)
35
+ described_class.json_engine = :yajl
36
+ end
37
+ end
25
38
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: beanstalk_farmer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Herdamn
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- hash: 1562988365962854422
109
+ hash: 3918122291663500270
110
110
  segments:
111
111
  - 0
112
112
  version: "0"