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
auser-poolparty-1.3.0 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.1 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.10 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.11 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.12 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.13 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.14 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.15 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.16 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.17 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.2 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.3 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.4 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.5 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.6 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.7 test/lib/poolparty/pool_party_error_test.rb
auser-poolparty-1.3.8 test/lib/poolparty/pool_party_error_test.rb
fairchild-poolparty-1.3.17 test/lib/poolparty/pool_party_error_test.rb
fairchild-poolparty-1.3.5 test/lib/poolparty/pool_party_error_test.rb
poolparty-1.6.9 test/lib/poolparty/pool_party_error_test.rb