Sha256: f57b6ebcb8f9b62b39666b481fe05f62af0dcd2c52a9234afe50913e3ad8bfb7

Contents?: true

Size: 199 Bytes

Versions: 23

Compression:

Stored size: 199 Bytes

Contents

class AliasMethodSpec
  def foo; 'foo'; end
  alias_method :bar, :foo
end

describe "Module#alias_method" do
  it "makes a copy of the method" do
    AliasMethodSpec.new.bar.should == 'foo'
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
opal-0.4.4 spec/opal/module/alias_method_spec.rb
opal-0.4.3 spec/opal/module/alias_method_spec.rb
opal-0.4.2 spec/opal/module/alias_method_spec.rb
opal-0.4.1 spec/opal/module/alias_method_spec.rb
opal-0.4.0 spec/opal/module/alias_method_spec.rb
opal-0.3.44 spec/rubyspec/core/module/alias_method_spec.rb
opal-0.3.43 spec/rubyspec/core/module/alias_method_spec.rb
opal-0.3.42 spec/core/module/alias_method_spec.rb
opal-0.3.41 spec/core/module/alias_method_spec.rb
opal-0.3.40 spec/core/module/alias_method_spec.rb
opal-0.3.39 spec/core/module/alias_method_spec.rb
opal-0.3.38 spec/core/module/alias_method_spec.rb
opal-0.3.37 spec/core/module/alias_method_spec.rb
opal-0.3.36 spec/core/module/alias_method_spec.rb
opal-0.3.35 spec/core/module/alias_method_spec.rb
opal-0.3.34 spec/core/module/alias_method_spec.rb
opal-0.3.33 spec/core/module/alias_method_spec.rb
opal-0.3.32 spec/core/module/alias_method_spec.rb
opal-0.3.31 spec/core/module/alias_method_spec.rb
opal-0.3.30 spec/core/module/alias_method_spec.rb