Skip to content

Commit d7ea70a

Browse files
committed
Merge pull request #98 from jgebal/feature/fix_unit_tests_boost_perf_of_ut
fix unit tests
2 parents 5e45cb7 + 8b3287e commit d7ea70a

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

spec/plsql/procedure_spec.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ def new_candidate(status)
18721872
expect(plsql.test_cursor do |cursor|
18731873
cursor2 = cursor
18741874
end).to be_nil
1875-
expect { cursor2.fetch }.to raise_error
1875+
expect { cursor2.fetch }.to raise_error(/Cursor was already closed|Closed Statement/)
18761876
end
18771877

18781878
it "should not raise error if cursor is closed inside block" do
@@ -2253,6 +2253,14 @@ def new_candidate(status)
22532253
end
22542254

22552255
describe '#get_argument_metadata' do
2256+
before(:all) do
2257+
plsql.connect! CONNECTION_PARAMS
2258+
end
2259+
2260+
after(:all) do
2261+
plsql.logoff
2262+
end
2263+
22562264
before(:each) do
22572265
plsql.execute <<-SQL
22582266
CREATE OR REPLACE FUNCTION magic_number(p_num INTEGER #{defaulted_clause})

0 commit comments

Comments
 (0)