Sha256: bec1418f10d1d8055c049488c82218021f30906708d0220ac2e9718572cc29a3

Contents?: true

Size: 479 Bytes

Versions: 26

Compression:

Stored size: 479 Bytes

Contents

require 'lib/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.3.3 spec/request_method_spec.rb
joshbuddy-usher-0.3.4 spec/request_method_spec.rb
joshbuddy-usher-0.3.5 spec/request_method_spec.rb
joshbuddy-usher-0.3.6 spec/request_method_spec.rb
joshbuddy-usher-0.4.0 spec/request_method_spec.rb
joshbuddy-usher-0.4.1 spec/private/request_method_spec.rb
joshbuddy-usher-0.4.10 spec/private/request_method_spec.rb
joshbuddy-usher-0.4.11 spec/private/request_method_spec.rb
joshbuddy-usher-0.4.2 spec/private/request_method_spec.rb
joshbuddy-usher-0.4.3 spec/private/request_method_spec.rb
joshbuddy-usher-0.4.5 spec/private/request_method_spec.rb
joshbuddy-usher-0.4.6 spec/private/request_method_spec.rb
joshbuddy-usher-0.4.7 spec/private/request_method_spec.rb
joshbuddy-usher-0.4.8 spec/private/request_method_spec.rb
joshbuddy-usher-0.5.1 spec/private/request_method_spec.rb
joshbuddy-usher-0.5.2 spec/private/request_method_spec.rb
joshbuddy-usher-0.5.3 spec/private/request_method_spec.rb
joshbuddy-usher-0.5.4 spec/private/request_method_spec.rb
joshbuddy-usher-0.5.6 spec/private/request_method_spec.rb
usher-0.5.6 spec/private/request_method_spec.rb