Sha256: 33294365e659d249690339ac154e30a693ca2ea06d4527fa88cf9d811a5a362f

Contents?: true

Size: 554 Bytes

Versions: 12

Compression:

Stored size: 554 Bytes

Contents

require 'test_helper'

class RemoteReceiverOptionsTest < Test::Unit::TestCase

  def setup
    @environment = Spreedly::Environment.new(remote_test_environment_key, remote_test_access_secret)
  end

  def test_successfully_get_options
    receiver_classes = @environment.receiver_options
    ace = receiver_classes.select { |each| each.name == "Acerentacar Receiver" }.first
    assert_equal "https://ota.acerentacar.com", ace.hostnames
    assert_equal "Ace Rent a Car", ace.company_name
    assert_equal "ace_rent_a_car", ace.receiver_type
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spreedly-2.0.28 test/remote/remote_receiver_options_test.rb
spreedly-2.0.27 test/remote/remote_receiver_options_test.rb
spreedly-2.0.26 test/remote/remote_receiver_options_test.rb
spreedly-2.0.25 test/remote/remote_receiver_options_test.rb
spreedly-2.0.24 test/remote/remote_receiver_options_test.rb
spreedly-2.0.23 test/remote/remote_receiver_options_test.rb
spreedly-2.0.22 test/remote/remote_receiver_options_test.rb
spreedly-2.0.21 test/remote/remote_receiver_options_test.rb
spreedly-2.0.20 test/remote/remote_receiver_options_test.rb
spreedly-2.0.19 test/remote/remote_receiver_options_test.rb
spreedly-2.0.18 test/remote/remote_receiver_options_test.rb
spreedly-2.0.17 test/remote/remote_receiver_options_test.rb