Skip to content

Commit

Permalink
Trying to make sense of TestSimperiumMirror
Browse files Browse the repository at this point in the history
  • Loading branch information
beaucollins committed Jul 23, 2013
1 parent dd21e55 commit 14ae00e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/test_simperium_mirror.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
require 'test/unit'
require 'simperium/listener-export-mongohq'
# We shouldn't try to load an executable script
# require 'simperium/listener-export-mongohq'

@admin_key = ENV['SIMPERIUM_CLIENT_TEST_ADMINKEY']
@appname = ENV['SIMPERIUM_CLIENT_TEST_APPNAME']

class TestSimperiumMirror < Test::Unit::TestCase

# This test seems peculiar. simperium/listener-export-mongohq is written like
# an executable bin script but this test attemps to load it as a stadard .rb
# file which doesn't (and shouldn't) work.
#
# It then tries to call the executable script using a method (`mirror`) which
# doesn't actually exist on a module/class `Listener` which is never defined.
def test_simperium_mirror
Listener::mirror(@appname, @admin_key, 'todo')
end
Expand Down

0 comments on commit 14ae00e

Please sign in to comment.