Sha256: 4e82d946c1d4722317c1fb8cbbbe3a651453d634bb7903ac5a84414ca76c1919

Contents?: true

Size: 301 Bytes

Versions: 9

Compression:

Stored size: 301 Bytes

Contents

require File.expand_path("helper", File.dirname(__FILE__))

test "adding your new custom helpers is ok" do
  class Cuba
    def foobar
    end
  end
end

test "redefining standard Cuba methods fails" do
  assert_raise Cuba::RedefinitionError do
    class Cuba
      def get
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cuba-3.0.0.rc4 test/redefinition.rb
cuba-3.0.0.rc3 test/redefinition.rb
cuba-3.0.0.rc2 test/redefinition.rb
cuba-3.0.0.rc1 test/redefinition.rb
cuba-2.2.1 test/redefinition.rb
cuba-2.2.0 test/redefinition.rb
cuba-2.2.0.rc1 test/redefinition.rb
cuba-2.1.0 test/redefinition.rb
cuba-2.1.0.rc1 test/redefinition.rb