Skip to content

Commit

Permalink
Let Kernel#alert return nil
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Sep 23, 2013
1 parent 59394a0 commit 02f8f17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions opal/opal-jquery/kernel.rb
@@ -1,5 +1,6 @@
module Kernel
def alert(msg)
`alert(msg)`
nil
end
end
7 changes: 7 additions & 0 deletions spec/kernel_spec.rb
@@ -0,0 +1,7 @@
require 'spec_helper'

describe 'Kernel#alert' do
it 'returns nil' do
Kernel.alert('a message').should be_nil
end
end

0 comments on commit 02f8f17

Please sign in to comment.