Sha256: 1ae1711755b6ad11044af54df896059773a236d03c34da52edb05ab14706426d

Contents?: true

Size: 726 Bytes

Versions: 2

Compression:

Stored size: 726 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_pull_request_correct_link
    response_body = {'message' => 'OK', 'data' => ''}.to_json
    stub_request(:get, "http://zmeygo.com/api/available_locales/fake_proj").
      with(:query => {:api_token => '1234'}).
      to_return(:body => response_body, :status => 200 )
    I18n.t :key1
    command = Command.new(["start","-d"])
    command.client.pull
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

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