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

Version Path
joshbuddy-usher-0.5.7 spec/private/request_method_spec.rb
usher-0.8.3 spec/private/request_method_spec.rb
usher-0.8.2 spec/private/request_method_spec.rb
usher-0.8.1 spec/private/request_method_spec.rb
usher-0.8.0 spec/private/request_method_spec.rb
usher-0.7.5 spec/private/request_method_spec.rb
usher-0.7.4 spec/private/request_method_spec.rb
usher-0.7.3 spec/private/request_method_spec.rb
usher-0.7.2 spec/private/request_method_spec.rb
usher-0.7.1 spec/private/request_method_spec.rb
usher-0.7.0 spec/private/request_method_spec.rb
usher-0.6.8 spec/private/request_method_spec.rb
usher-0.6.7 spec/private/request_method_spec.rb
usher-0.6.6 spec/private/request_method_spec.rb
usher-0.6.5 spec/private/request_method_spec.rb
usher-0.6.4 spec/private/request_method_spec.rb
usher-0.6.3 spec/private/request_method_spec.rb
usher-0.6.2 spec/private/request_method_spec.rb
usher-0.6.1 spec/private/request_method_spec.rb
usher-0.6.0 spec/private/request_method_spec.rb