spec/client_spec.rb in http-2-0.6.3 vs spec/client_spec.rb in http-2-0.7.0

- old
+ new

@@ -15,23 +15,23 @@ it "should emit connection header and SETTINGS on new client connection" do frames = [] @client.on(:frame) { |bytes| frames << bytes } @client.ping("12345678") - frames[0].should eq CONNECTION_HEADER + frames[0].should eq CONNECTION_PREFACE_MAGIC f.parse(frames[1])[:type].should eq :settings end it "should initialize client with custom connection settings" do frames = [] - @client = Client.new(streams: 200) + @client = Client.new(:settings_max_concurrent_streams => 200) @client.on(:frame) { |bytes| frames << bytes } @client.ping("12345678") frame = f.parse(frames[1]) frame[:type].should eq :settings - frame[:payload][:settings_max_concurrent_streams].should eq 200 + frame[:payload].should include([:settings_max_concurrent_streams, 200]) end end context "push" do it "should disallow client initiated push" do