Sha256: 0419492ef6f2d834047e968e8bea6e7e0753c73458456b200d693fdfeb2e9788

Contents?: true

Size: 487 Bytes

Versions: 48

Compression:

Stored size: 487 Bytes

Contents

require "#{File.dirname(__FILE__)}/../../test_helper"

class PoolPartyErrorTest < Test::Unit::TestCase
  include PoolParty
  context "Error" do
    should "be able to create a PoolPartyError" do
      assert_nothing_raised do
        PoolPartyError.create "TestError", "New error"
      end
    end
    
    should "raise when called with the test error" do
      assert_raise TestError do
        raise PoolPartyError.create("TestError", "New error")
      end
    end
    
  end
  
end

Version data entries

48 entries across 48 versions & 3 rubygems

Version Path
poolparty-1.3.14 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.3.13 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.3.8 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.3.7 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.3.6 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.3.4 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.3.3 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.3.1 test/lib/poolparty/pool_party_error_test.rb