spec/arborist/manager_spec.rb in arborist-0.0.1.pre20160829140603 vs spec/arborist/manager_spec.rb in arborist-0.0.1.pre20161005112841
- old
+ new
@@ -162,11 +162,11 @@
expect( manager.restore_node_states ).to be_falsey
end
it "checkpoints the state file periodically if an interval is configured" do
- described_class.configure( manager: {checkpoint_frequency: 20_000, state_file: 'arb.tree'} )
+ described_class.configure( checkpoint_frequency: 20_000, state_file: 'arb.tree' )
zloop = instance_double( ZMQ::Loop, register: nil, :verbose= => nil )
timer = instance_double( ZMQ::Timer, "checkpoint timer" )
expect( ZMQ::Loop ).to receive( :new ).and_return( zloop )
allow( ZMQ::Timer ).to receive( :new ).and_call_original
@@ -201,15 +201,15 @@
context "heartbeat event" do
it "errors if configured with a heartbeat of 0" do
expect {
- described_class.configure( manager: {heartbeat_frequency: 0} )
+ described_class.configure( heartbeat_frequency: 0 )
}.to raise_error( Arborist::ConfigError, /positive non-zero/i )
end
- it "is sent at the configured "
+ it "is sent at the configured interval"
end
context "a new empty manager" do