Sha256: 4784f72de7782bf8bf8ab7988970aa4d01d54d2369fa412b0f9cb49e231fc604

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'

describe "Method Extension" do
  it "should compare methods by type and name." do
    actual = %w[send nil? clone gsub! ].map {|m| Kernel.method(m)} 
    actual << Module.method(:nesting)
    sorted = actual.sort_by {|method| method.to_s}
    sorted.should == [
      Kernel.method(:gsub!),
      Kernel.method(:clone),
      Kernel.method(:nil?),
      Kernel.method(:send),
      Module.method(:nesting)
    ]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aquarium-0.1.0 spec/aquarium/finders/method_sorting_spec.rb