X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F73oracle.t;h=c6211e28986a37bc90cc9dba61bd52e9878d5dc0;hb=7e017742f708618487923261292bc92660a2031c;hp=f6da1a1494ae08acca985f0f1fceb137a33c7c74;hpb=2c2bc4e58c2146670960fc1a0a2ae802cb650506;p=dbsrgits%2FDBIx-Class.git diff --git a/t/73oracle.t b/t/73oracle.t index f6da1a1..c6211e2 100644 --- a/t/73oracle.t +++ b/t/73oracle.t @@ -1,3 +1,5 @@ +use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_rdbms_oracle'; + use strict; use warnings; @@ -5,26 +7,19 @@ use Test::Exception; use Test::More; use Sub::Name; use Try::Tiny; -use DBIx::Class::Optional::Dependencies (); use lib qw(t/lib); use DBICTest; +$ENV{NLS_SORT} = "BINARY"; +$ENV{NLS_COMP} = "BINARY"; +$ENV{NLS_LANG} = "AMERICAN"; + my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_ORA_${_}" } qw/DSN USER PASS/}; # optional: my ($dsn2, $user2, $pass2) = @ENV{map { "DBICTEST_ORA_EXTRAUSER_${_}" } qw/DSN USER PASS/}; -plan skip_all => 'Set $ENV{DBICTEST_ORA_DSN}, _USER and _PASS to run this test.' - unless ($dsn && $user && $pass); - -plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_rdbms_oracle') - unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_rdbms_oracle'); - -$ENV{NLS_SORT} = "BINARY"; -$ENV{NLS_COMP} = "BINARY"; -$ENV{NLS_LANG} = "AMERICAN"; - { package # hide from PAUSE DBICTest::Schema::ArtistFQN; @@ -62,7 +57,6 @@ $ENV{NLS_LANG} = "AMERICAN"; 1; } -require DBICTest::Schema; DBICTest::Schema->load_classes('ArtistFQN'); # This is in Core now, but it's here just to test that it doesn't break @@ -201,12 +195,6 @@ sub _run_tests { like ($seq, qr/\.${q}artist_pk_seq${q}$/, 'Correct PK sequence selected for sqlt-like trigger'); } - lives_ok { - $new = $schema->resultset('Artist')->create({}); - $new->discard_changes; - ok $new->artistid, 'Created row has id' - } 'Create with empty hashref works'; - # test LIMIT support for (1..6) {