spec/hara_spec.rb in hara-0.3.0 vs spec/hara_spec.rb in hara-0.4.0

- old
+ new

@@ -7,12 +7,9 @@ end App.should == Hara::Application end it 'Hara.encode_msg & decode_msg should work' do - action = 'hello_world' - args = ['hello', 'world'] - action_d, args_d = Hara.decode_msg Hara.encode_msg(action, *args) - action.should == action_d - args.should == args_d + msg = {'action' => 'hello_world', 'args' => ['hello', 'world']} + Hara.decode_msg(Hara.encode_msg msg).should == msg end end