12 var Instrument = new Native({
16 initialize: function(name){
22 Instrument.implement({
25 return this.property + ' ' + this.name;
32 var Car = new Native({
36 initialize: function(name){
47 return this.name + '_' + this.property;
52 describe('Native (private)', function(){
54 it('should allow implementation over existing methods when browser option is not set', function(){
55 Instrument.implement({ property: 'staff' });
56 var myInstrument = new Instrument('xeelophone');
57 expect(myInstrument.method()).toEqual('staff xeelophone');
60 it('should allow generic calls', function(){
61 expect(Car.method({name: 'ciccio', property: 'bello'})).toEqual('ciccio_bello');
64 it("should have a 'native' type", function(){
65 expect(Native.type(Car)).toBeTruthy();