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.6.8 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.7 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.6 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.5 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.4 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.3 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.2 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.1 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.0 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.5.0 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.8 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.7 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.6 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.5 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.4 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.3 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.2 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.1 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.4.0 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.3.15 test/lib/poolparty/pool_party_error_test.rb