Sha256: 1f545159797f97fe6d0eccca336c1ec250e364d38253725018b0d125c1b8f4d4

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

require "test_helper"

class MonkeyParty::ErrorTest < Test::Unit::TestCase
  context "An error" do
    setup do
      error_body = File.read(xml_fixture_path("login_failed")).gsub(/.*<MCAPI/m, "<MCAPI")
      @error = MonkeyParty::Error.parse(error_body)
    end

    should "have a code" do
      assert_not_nil @error.code
    end

    should "have an error message" do
      assert_not_nil @error.message
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
dpickett-monkey_party-0.0.1 test/monkey_party/error_test.rb
dpickett-monkey_party-0.0.3 test/monkey_party/error_test.rb
dpickett-monkey_party-0.1.0 test/monkey_party/error_test.rb
monkey_party-0.2.0 test/monkey_party/error_test.rb