added test for check_has_column
[catagits/Catalyst-Controller-DBIC-API.git] / t / generic.t
diff --git a/t/generic.t b/t/generic.t
new file mode 100644 (file)
index 0000000..fa6a297
--- /dev/null
@@ -0,0 +1,11 @@
+use strict;
+use warnings;
+use lib 't/lib';
+use Test::More;
+
+{
+    eval "use Catalyst::Test 'TestAppCheckHasCol'";
+    like($@, qr/^Couldn't load class \(TestAppCheckHasCol\) because: Couldn't instantiate component "TestAppCheckHasCol::Controller::InvalidColumn", "Column 'foo' does not exist in ResultSet 'TestAppDB::Artist'/, 'check_has_column ok');
+}
+
+done_testing();