Sha256: 1742c7530950df77c25f67ea39933e6d7850370bdd8b5b17ca1f37e75cc92be5

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)

describe Native do
	before do
		@test = Class.new {
			include Native
		}
	end

	it 'creates a working object' do
		@test.new(42).to_native.should == 42
	end

	it 'sends calls properly' do
		@test.new(42).native_send(:toString, 16).should == '2a'
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-native-0.0.4.2 spec/native_spec.rb
opal-native-0.0.4.1 spec/native_spec.rb
opal-native-0.0.4 spec/native_spec.rb
opal-native-0.0.3 spec/native_spec.rb