Sha256: 15557f0b26c5977e2ad5942f12e9fac7e3b67dbfec89a9035d064c449d2cb678

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 Bytes

Contents

require File.join(File.dirname(__FILE__),'/test_helper')
require File.join(File.dirname(__FILE__),'../lib/zmeygo_sync')

# Test push functionality
class PushTest < Test::Unit::TestCase
  # check if i18n.t method indeed populates Zmeygo.missing_keys

  include ZmeygoSync

  def setup
    common_setup
  end

  def teardown
    common_teardown
  end

  def test_if_push_request_correct_link
    stub_request(:post, "http://zmeygo.com/api/pushmissing").
      with(:query => {:api_token => '1234'}).
      to_return(:body => "OK", :status => 200 )
    I18n.t :key1
    command = Command.new(["start","-d"])
    command.client.push
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zmeygo_sync-0.22 test/push_test.rb
zmeygo_sync-0.21 test/push_test.rb