Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Plugin::Encoding::MobileJPで必要なModuleがなければPluginのテストをskip

  • Loading branch information...
commit 190d8a43256e8becef642a698d465c98975fd6b2 1 parent 96c4f43
Shinichiro Sei shin1rosei authored
7 t/plugin_encoding_mobilejp.t
View
@@ -4,6 +4,12 @@ use HTTP::Request::Common;
use Test::More;
use utf8;
+eval "use Encode::JP::Mobile";
+plan skip_all => 'this test required Encode::JP::Mobile' if $@;
+
+eval "use HTTP::MobileAgent::Plugin::Charset";
+plan skip_all => 'this test required HTTP::MobileAgent::Plugin::Charset' if $@;
+
{
package T;
use Ark;
@@ -16,7 +22,6 @@ use utf8;
package T::Encoding::Test;
use Ark::Plugin;
- use Ark::Plugin::Encoding::MobileJP;
sub prepare_encoding {
my ($c) = @_;
7 t/plugin_encoding_mobilejp_called_parameters_before.t
View
@@ -6,6 +6,12 @@ use Encode;
use utf8;
+eval "use Encode::JP::Mobile";
+plan skip_all => 'this test required Encode::JP::Mobile' if $@;
+
+eval "use HTTP::MobileAgent::Plugin::Charset";
+plan skip_all => 'this test required HTTP::MobileAgent::Plugin::Charset' if $@;
+
{
package T;
use Ark;
@@ -18,7 +24,6 @@ use utf8;
package T::Encoding::Test;
use Ark::Plugin;
- use Ark::Plugin::Encoding::MobileJP;
sub prepare_encoding {
my ($c) = @_;
Please sign in to comment.
Something went wrong with that request. Please try again.