New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed fix for #12 #15

Merged
merged 1 commit into from Dec 15, 2015
Jump to file or symbol
Failed to load files and symbols.
+20 −13
Diff settings

Always

Just for now

Copy path View file
@@ -43,23 +43,30 @@ if ($Test::More::VERSION < 0.99) {
$isa_expected = q{ok 2 - The object isa UnexpectedTest::Schema};
}
my @expected_out = (
q{ok 1 - use UnexpectedTest::Schema;},
$isa_expected,
q{ok 3 - The record object is a ::SpanishInquisition},
q{ok 4 - 'id' column defined in result_source},
q{ok 5 - 'id' column exists in database},
q{ok 6 - 'name' column defined in result_source},
q{ok 7 - 'name' column exists in database},
q{ok 8 # skip no relations methods},
q{ok 9 # skip no custom methods},
q{ok 10 # skip no resultsets methods},
);
# hackety-hack! fudge!
if ($Test::More::VERSION < 1.3) {
push @expected_out,
q{not ok 11 - planned to run 4 but done_testing() expects 10}
}
#
## All's good - no unexpected columns
NO_SURPRISES: {
test_out(
q{ok 1 - use UnexpectedTest::Schema;},
$isa_expected,
q{ok 3 - The record object is a ::SpanishInquisition},
q{ok 4 - 'id' column defined in result_source},
q{ok 5 - 'id' column exists in database},
q{ok 6 - 'name' column defined in result_source},
q{ok 7 - 'name' column exists in database},
q{ok 8 # skip no relations methods},
q{ok 9 # skip no custom methods},
q{ok 10 # skip no resultsets methods},
# hackety-hack! fudge!
q{not ok 11 - planned to run 4 but done_testing() expects 10},
@expected_out,
);
$schematest->run_tests();
ProTip! Use n and p to navigate between commits in a pull request.