Skip to content

Commit 02f8f17

Browse files
committedSep 23, 2013
Let Kernel#alert return nil
1 parent 59394a0 commit 02f8f17

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎opal/opal-jquery/kernel.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Kernel
22
def alert(msg)
33
`alert(msg)`
4+
nil
45
end
56
end

‎spec/kernel_spec.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'spec_helper'
2+
3+
describe 'Kernel#alert' do
4+
it 'returns nil' do
5+
Kernel.alert('a message').should be_nil
6+
end
7+
end

0 commit comments

Comments
 (0)
Please sign in to comment.