spec/support/outgoing_frames.rb in websocket-1.1.4 vs spec/support/outgoing_frames.rb in websocket-1.2.0
- old
+ new
@@ -1,14 +1,14 @@
-shared_examples_for 'valid_outgoing_frame' do
- its(:class) { should eql(WebSocket::Frame::Outgoing) }
- its(:version) { should eql(version) }
- its(:type) { should eql(frame_type) }
- its(:data) { should eql(decoded_text) }
- its(:to_s) { should eql(encoded_text) }
+RSpec.shared_examples_for 'valid_outgoing_frame' do
+ its(:class) { is_expected.to eql(WebSocket::Frame::Outgoing) }
+ its(:version) { is_expected.to eql(version) }
+ its(:type) { is_expected.to eql(frame_type) }
+ its(:data) { is_expected.to eql(decoded_text) }
+ its(:to_s) { is_expected.to eql(encoded_text) }
- context "after parsing" do
- before { subject.to_s }
- its(:error) { should eql(error) }
- its(:require_sending?) { should eql(require_sending) }
+ context 'after parsing' do
+ before(:each) { subject.to_s }
+ its(:error) { is_expected.to eql(error) }
+ its(:require_sending?) { is_expected.to eql(require_sending) }
end
end