spec/onstomp/connections/stomp_1_spec.rb in onstomp-1.0.9 vs spec/onstomp/connections/stomp_1_spec.rb in onstomp-1.0.10

- old
+ new

@@ -15,9 +15,18 @@ :header2 => 'value 2'}, {:header1 => '', :header2 => 'value 22', :header3 => 'value 3'} ).should be_an_onstomp_frame('CONNECT', {:header1 => 'value 1', :header2 => 'value 22', :header3 => 'value 3'}, nil) end + + it "should build a CNNECT frame with boolean value in header" do + connection_connect_frame = connection.connect_frame({:header1 => true, :header2 => false}, + {:header1 => '', :header2 => {}} + ) + connection_connect_frame.should be_an_onstomp_frame('CONNECT', + {:header1 => 'true', :header2 => 'false'}, + nil) + end end describe ".send_frame" do it "should build a SEND frame" do connection.send_frame('/queue/test', 'body of message',