Whitespace trim tests
[gitmo/MooseX-Storage.git] / t / 105_io_atomic_w_utf8.t
index d831409..fafc565 100644 (file)
@@ -8,20 +8,20 @@ use Test::TempDir;
 use File::Spec::Functions;
 my $dir = tempdir;
 
-BEGIN {  
+BEGIN { 
     eval "use IO::AtomicFile";
-    plan skip_all => "IO::AtomicFile is required for this test" if $@;        
+    plan skip_all => "IO::AtomicFile is required for this test" if $@; 
     eval "use JSON::Any";
-    plan skip_all => "JSON::Any is required for this test" if $@;        
-    # NOTE: 
-    # this is because JSON::XS is 
+    plan skip_all => "JSON::Any is required for this test" if $@; 
+    # NOTE:
+    # this is because JSON::XS is
     # the only one which really gets
     # utf8 correct
-    # - SL 
-    BEGIN { 
+    # - SL
+    BEGIN {
         $ENV{JSON_ANY_ORDER}  = qw(XS);
-        $ENV{JSON_ANY_CONFIG} = "utf8=1";        
-    }           
+        $ENV{JSON_ANY_CONFIG} = "utf8=1"; 
+    } 
     plan tests => 8;
     use_ok('MooseX::Storage');
 }
@@ -34,7 +34,7 @@ use utf8;
     use MooseX::Storage;
 
     with Storage( 'format' => 'JSON', 'io' => 'AtomicFile' );
-    
+
     has 'utf8_string' => (
         is      => 'rw',
         isa     => 'Str',
@@ -47,16 +47,16 @@ my $file = catfile($dir, 'temp.json');
 {
     my $foo = Foo->new;
     isa_ok( $foo, 'Foo' );
-       
-    $foo->store($file);         
+
+    $foo->store($file);
 }
 
 {
     my $foo = Foo->load($file);
     isa_ok($foo, 'Foo');
 
-    is($foo->utf8_string, 
-      "ネットスーパー (Internet Shopping)", 
+    is($foo->utf8_string,
+      "ネットスーパー (Internet Shopping)",
       '... got the string we expected');
 }
 
@@ -69,18 +69,18 @@ unlink $file;
         utf8_string => 'Escritório'
     );
     isa_ok( $foo, 'Foo' );
-       
-    $foo->store($file);         
+
+    $foo->store($file);
 }
 
 {
     my $foo = Foo->load($file);
     isa_ok($foo, 'Foo');
-    
+
     ok(utf8::is_utf8($foo->utf8_string), '... the string is still utf8');
 
-    is($foo->utf8_string, 
-      "Escritório", 
+    is($foo->utf8_string,
+      "Escritório",
       '... got the string we expected');
 }