spec/api/stats_spec.rb in rhosync-2.1.16 vs spec/api/stats_spec.rb in rhosync-2.1.17.beta1
- old
+ new
@@ -7,13 +7,15 @@
@app = Rhosync::Server.new
end
before(:each) do
Rhosync::Server.set :stats, true
+ Rhosync.stats = true
end
after(:each) do
Rhosync::Server.set :stats, false
+ Rhosync.stats = false
end
it "should retrieve metric names" do
Store.set_value('stat:foo', '1')
Store.set_value('stat:bar', '2')
\ No newline at end of file