Sha256: 82aa36b983fd423ecf4d1543faf5f2bf997e099b09a58890bf07a37ada91580f
Contents?: true
Size: 557 Bytes
Versions: 26
Compression:
Stored size: 557 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper")) require "usher" describe "Usher request method" do it "support eql? and ==" do Usher::Route::RequestMethod.new(:method, 'blah').should == Usher::Route::RequestMethod.new(:method, 'blah') Usher::Route::RequestMethod.new(:method, 'blah').should.eql?(Usher::Route::RequestMethod.new(:method, 'blah')) end it "support hash" do Usher::Route::RequestMethod.new(:method, 'blah').hash.should == (Usher::Route::RequestMethod.new(:method, 'blah')).hash end end
Version data entries
26 entries across 26 versions & 2 rubygems