jjn1056/DBIx-Class-Migration — pull request #1 by felliott (2012-02-29 17:19:16+00:00)
Title: fix for dbic-migration help command + test

Hello,

On my system `dbic-migration help` doesn't produce any output. I think this is because pod2usage doesn't know which module to pull the pod from. According to the Pod::Usage docs, this can be fixed by passing the -input arg to pod2usage. I've added this and it works on my system. I've also added a test to make sure it produces the correct output. I've split this into 3 commits:

1.) HEAD^^ fixes the bug using Pod::Find per the Pod::usage docs

2.) HEAD^ adds Pod::Find to the prereqs in dist.ini. Pod::Find is in the same dist as Pod::Usage, and I wasn't sure if you liked explicit dependencies or not.

3.) HEAD adds a new test script, t/script.t, that checks the output of the help command. One caveat: since pod2usage calls exit(), I had to add a dependency on Test::Trap in order to capture the output. Test::Trap currently has failing tests on my system, though they're minor (in comparing error messages, a trailing period was missed). I could put it in a SKIP block, if you'd prefer.

Cheers,
Fitz