Fix nonsensical result class names introduced by a test in 45f8858e6
Peter Rabbitson [Fri, 8 Nov 2013 09:12:09 +0000 (10:12 +0100)]
t/39load_namespaces_rt41083.t
t/lib/DBICNSTest/RtBug41083/Result/Foo.pm [moved from t/lib/DBICNSTest/RtBug41083/Schema/Foo.pm with 72% similarity]
t/lib/DBICNSTest/RtBug41083/Result/Foo/Sub.pm [new file with mode: 0644]
t/lib/DBICNSTest/RtBug41083/Result_A/A.pm [moved from t/lib/DBICNSTest/RtBug41083/Schema_A/A.pm with 71% similarity]
t/lib/DBICNSTest/RtBug41083/Result_A/A/Sub.pm [new file with mode: 0644]
t/lib/DBICNSTest/RtBug41083/Schema/Foo/Sub.pm [deleted file]
t/lib/DBICNSTest/RtBug41083/Schema_A/A/Sub.pm [deleted file]

index 79c9c7a..2584290 100644 (file)
@@ -32,7 +32,7 @@ sub _verify_sources {
     package DBICNSTest::RtBug41083;
     use base 'DBIx::Class::Schema';
     __PACKAGE__->load_namespaces(
-      result_namespace => 'Schema_A',
+      result_namespace => 'Result_A',
       resultset_namespace => 'ResultSet_A',
       default_resultset_class => 'ResultSet'
     );
@@ -52,8 +52,6 @@ sub _verify_sources {
     package DBICNSTest::RtBug41083;
     use base 'DBIx::Class::Schema';
     __PACKAGE__->load_namespaces(
-      result_namespace => 'Schema',
-      resultset_namespace => 'ResultSet',
       default_resultset_class => 'ResultSet'
     );
   };
similarity index 72%
rename from t/lib/DBICNSTest/RtBug41083/Schema/Foo.pm
rename to t/lib/DBICNSTest/RtBug41083/Result/Foo.pm
index 4c98495..703e59c 100644 (file)
@@ -1,4 +1,4 @@
-package DBICNSTest::RtBug41083::Schema::Foo;
+package DBICNSTest::RtBug41083::Result::Foo;
 use strict;
 use warnings;
 use base 'DBIx::Class::Core';
diff --git a/t/lib/DBICNSTest/RtBug41083/Result/Foo/Sub.pm b/t/lib/DBICNSTest/RtBug41083/Result/Foo/Sub.pm
new file mode 100644 (file)
index 0000000..6d48de7
--- /dev/null
@@ -0,0 +1,5 @@
+package DBICNSTest::RtBug41083::Result::Foo::Sub;
+use strict;
+use warnings;
+use base 'DBICNSTest::RtBug41083::Result::Foo';
+1;
similarity index 71%
rename from t/lib/DBICNSTest/RtBug41083/Schema_A/A.pm
rename to t/lib/DBICNSTest/RtBug41083/Result_A/A.pm
index 6a3995f..2494685 100644 (file)
@@ -1,4 +1,4 @@
-package DBICNSTest::RtBug41083::Schema_A::A;
+package DBICNSTest::RtBug41083::Result_A::A;
 use strict;
 use warnings;
 use base 'DBIx::Class::Core';
diff --git a/t/lib/DBICNSTest/RtBug41083/Result_A/A/Sub.pm b/t/lib/DBICNSTest/RtBug41083/Result_A/A/Sub.pm
new file mode 100644 (file)
index 0000000..dbb6ba0
--- /dev/null
@@ -0,0 +1,5 @@
+package DBICNSTest::RtBug41083::Result_A::A::Sub;
+use strict;
+use warnings;
+use base 'DBICNSTest::RtBug41083::Result_A::A';
+1;
diff --git a/t/lib/DBICNSTest/RtBug41083/Schema/Foo/Sub.pm b/t/lib/DBICNSTest/RtBug41083/Schema/Foo/Sub.pm
deleted file mode 100644 (file)
index 73ec679..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-package DBICNSTest::RtBug41083::Schema::Foo::Sub;
-use strict;
-use warnings;
-use base 'DBICNSTest::RtBug41083::Schema::Foo';
-1;
diff --git a/t/lib/DBICNSTest/RtBug41083/Schema_A/A/Sub.pm b/t/lib/DBICNSTest/RtBug41083/Schema_A/A/Sub.pm
deleted file mode 100644 (file)
index 1128e1e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-package DBICNSTest::RtBug41083::Schema_A::A::Sub;
-use strict;
-use warnings;
-use base 'DBICNSTest::RtBug41083::Schema_A::A';
-1;