rsim/ruby-plsql — pull request #39 by yahonda (2012-11-06 14:25:19+00:00)
Title: Add `to_i` to show correct DATABASE_PORT number

This pull request addresses a following test pending condition handled correctly.

Ruby ENV['DATABASE_PORT'] returns as a String.
`@port == 1521` always becomes false
because the @port class is String but 1521 is a Fixnum.

```ruby
$ echo $DATABASE_PORT
1521
```

```ruby
$ rspec ./spec/plsql/schema_spec.rb:78
Run options: include {:locations=>{"./spec/plsql/schema_spec.rb"=>[78]}}
*

Pending:
Connection with connect! should connect with username, password, host, database name and default port
# Non-default port used for test database
# ./spec/plsql/schema_spec.rb:78

Finished in 0.00089 seconds
1 example, 0 failures, 1 pending
$
```