require "spec_helper"
describe "test installation" do
it "should get SYSDATE" do
plsql.sysdate.should_not == NULL
end
end
In database.yml I used connection to Oracle database in my company.
I got following error:
Failing tests!
and nothing more!
In order to investigate what is the problem, I directly run spec_helper.rb using jruby. After that invocation I received java exception:
java.sql.SQLDataException: ORA-01882: timezone region not found
The solution was to enter following lines in spec_helper.py (that ruby script is generated by plsql-spec init)
ENV['TZ'] = 'Europe/Zagreb'
after all require statements.
You should put your own time zone.