Sha256: 5a8c9314a1e053c0a72ad327358940c77ee00a435081b941c39899ea2f9b2d0f

Contents?: true

Size: 191 Bytes

Versions: 3

Compression:

Stored size: 191 Bytes

Contents

describe "Redefining a method" do
  
  it "replaces the original method" do
    def barFoo; 100; end
    barFoo.should == 100
    
    def barFoo; 200; end
    barFoo.should == 200
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opal-0.2.2 opals/opal/opal/spec/language/def_spec.rb
opal-0.2.0 opals/opal/opal/spec/language/def_spec.rb
opal-0.1.0 opals/opal/spec/language/def_spec.rb