Sha256: 2ab8de6777eb29cf39f3be0eb35b236da0a6ef9a07c5837da13a1eee6df0be1b
Contents?: true
Size: 698 Bytes
Versions: 7
Compression:
Stored size: 698 Bytes
Contents
# -*- encoding: utf-8 -*- # Spec::Matchers.define :be_a_registered_server_frame do # match do |actual| # command_name = actual.name.split('::').last.upcase # frame = Stomp::Frames::ServerFrame.build(command_name, { :a_header => 'test' }, 'body') # frame.should be_an_instance_of(actual) # frame.command.should == command_name # frame.headers[:a_header].should == 'test' # frame.body.should == 'test body' # end # end # # Spec::Matchers.define :be_able_to_access_header_values_like_a_hash do # match do |actual| # frame = actual.new( { :header_1 => 1, :header_2 => 'test' }) # frame[:header_1].should == 1 # frame[:header_2].should == 'test' # end # end
Version data entries
7 entries across 7 versions & 1 rubygems