@@ -27,72 +27,72 @@ describe('RubyGenerator/Looks', () => {
2727 expect ( RubyGenerator . looks_say ( block ) ) . toEqual ( expected ) ;
2828 } ) ;
2929
30- test ( 'with @smalruby :print' , ( ) => {
30+ test ( 'with @ruby:method :print' , ( ) => {
3131 const block = {
3232 id : 'block-id' ,
3333 opcode : 'looks_say' ,
3434 inputs : {
3535 MESSAGE : { }
3636 }
3737 } ;
38- RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@smalruby :print' } ;
38+ RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@ruby:method :print' } ;
3939 RubyGenerator . valueToCode = jest . fn ( ) . mockReturnValue ( '"Hello!"' ) ;
4040 const expected = 'print("Hello!")\n' ;
4141 expect ( RubyGenerator . looks_say ( block ) ) . toEqual ( expected ) ;
4242 } ) ;
4343
44- test ( 'with @smalruby :puts' , ( ) => {
44+ test ( 'with @ruby:method :puts' , ( ) => {
4545 const block = {
4646 id : 'block-id' ,
4747 opcode : 'looks_say' ,
4848 inputs : {
4949 MESSAGE : { }
5050 }
5151 } ;
52- RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@smalruby :puts' } ;
52+ RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@ruby:method :puts' } ;
5353 RubyGenerator . valueToCode = jest . fn ( ) . mockReturnValue ( '"Hello!"' ) ;
5454 const expected = 'puts("Hello!")\n' ;
5555 expect ( RubyGenerator . looks_say ( block ) ) . toEqual ( expected ) ;
5656 } ) ;
5757
58- test ( 'with @smalruby :p' , ( ) => {
58+ test ( 'with @ruby:method :p' , ( ) => {
5959 const block = {
6060 id : 'block-id' ,
6161 opcode : 'looks_say' ,
6262 inputs : {
6363 MESSAGE : { }
6464 }
6565 } ;
66- RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@smalruby :p' } ;
66+ RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@ruby:method :p' } ;
6767 RubyGenerator . valueToCode = jest . fn ( ) . mockReturnValue ( '"Hello!"' ) ;
6868 const expected = 'p("Hello!")\n' ;
6969 expect ( RubyGenerator . looks_say ( block ) ) . toEqual ( expected ) ;
7070 } ) ;
7171
72- test ( 'with unknown @smalruby : tag defaults to say' , ( ) => {
72+ test ( 'with unknown @ruby : tag defaults to say' , ( ) => {
7373 const block = {
7474 id : 'block-id' ,
7575 opcode : 'looks_say' ,
7676 inputs : {
7777 MESSAGE : { }
7878 }
7979 } ;
80- RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@smalruby :unknown' } ;
80+ RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@ruby :unknown' } ;
8181 RubyGenerator . valueToCode = jest . fn ( ) . mockReturnValue ( '"Hello!"' ) ;
8282 const expected = 'say("Hello!")\n' ;
8383 expect ( RubyGenerator . looks_say ( block ) ) . toEqual ( expected ) ;
8484 } ) ;
8585 } ) ;
8686
8787 describe ( 'scrub_ (meta-comment filtering)' , ( ) => {
88- test ( 'should filter out @smalruby : comments' , ( ) => {
88+ test ( 'should filter out @ruby : comments' , ( ) => {
8989 const block = {
9090 id : 'block-id' ,
9191 opcode : 'looks_say' ,
9292 inputs : { } ,
9393 next : null
9494 } ;
95- RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@smalruby :print' } ;
95+ RubyGenerator . cache_ . comments [ 'block-id' ] = { text : '@ruby:method :print' } ;
9696 RubyGenerator . getInputs = jest . fn ( ) . mockReturnValue ( { } ) ;
9797 RubyGenerator . isConnectedValue = jest . fn ( ) . mockReturnValue ( false ) ;
9898 RubyGenerator . getBlock = jest . fn ( ) . mockReturnValue ( null ) ;
@@ -101,7 +101,7 @@ describe('RubyGenerator/Looks', () => {
101101 const code = 'print("Hello!")\n' ;
102102 const result = RubyGenerator . scrub_ ( block , code ) ;
103103
104- // Should NOT contain the comment since it starts with @smalruby :
104+ // Should NOT contain the comment since it starts with @ruby :
105105 expect ( result ) . toEqual ( 'print("Hello!")\n' ) ;
106106 } ) ;
107107
0 commit comments