test/data_sources/test_filesystem.rb in nanoc-4.0.0b4 vs test/data_sources/test_filesystem.rb in nanoc-4.0.0rc1

- old
+ new

@@ -38,11 +38,11 @@ # Get all files output_expected = { './foo' => ['yaml', ['html']], './bar.entry' => [nil, ['html']], - './foo/qux' => ['yaml', [nil]] + './foo/qux' => ['yaml', [nil]], } output_actual = data_source.send :all_split_files_in, '.' # Check assert_equal output_expected, output_actual @@ -65,11 +65,11 @@ # Get all files output_expected = { './foo' => ['yaml', ['html']], './bar' => [nil, ['html.erb']], - './foo/qux' => ['yaml', [nil]] + './foo/qux' => ['yaml', [nil]], } output_actual = data_source.send :all_split_files_in, '.' # Check assert_equal output_expected, output_actual @@ -87,11 +87,11 @@ # Check expected = { './aaa/foo' => [nil, ['html']], './bbb/foo' => [nil, ['html']], - './ccc/foo' => [nil, ['html']] + './ccc/foo' => [nil, ['html']], } assert_equal expected, data_source.send(:all_split_files_in, '.') end def test_all_split_files_in_with_same_extensions @@ -144,11 +144,11 @@ '/foo/bar' => '/foo/bar', '/foo/bar.html' => '/foo/bar', '/foo/bar.xyz.html' => '/foo/bar.xyz', '/foo/bar/' => '/foo/bar/', '/foo/bar.xyz/' => '/foo/bar.xyz/', - '/foo.xyz/bar.xyz/' => '/foo.xyz/bar.xyz/' + '/foo.xyz/bar.xyz/' => '/foo.xyz/bar.xyz/', } # Check expected.each_pair do |input, expected_output| actual_output = data_source.send(:basename_of, input) @@ -174,11 +174,11 @@ '/foo/bar' => '/foo/bar', '/foo/bar.html' => '/foo/bar', '/foo/bar.xyz.html' => '/foo/bar', '/foo/bar/' => '/foo/bar/', '/foo/bar.xyz/' => '/foo/bar.xyz/', - '/foo.xyz/bar.xyz/' => '/foo.xyz/bar.xyz/' + '/foo.xyz/bar.xyz/' => '/foo.xyz/bar.xyz/', } # Check expected.each_pair do |input, expected_output| actual_output = data_source.send(:basename_of, input) @@ -204,11 +204,11 @@ '/foo/bar' => '', '/foo/bar.html' => '.html', '/foo/bar.xyz.html' => '.html', '/foo/bar/' => '', '/foo/bar.xyz/' => '', - '/foo.xyz/bar.xyz/' => '' + '/foo.xyz/bar.xyz/' => '', } # Check expected.each_pair do |input, expected_output| actual_output = data_source.send(:ext_of, input) @@ -234,10 +234,10 @@ '/foo/bar' => '', '/foo/bar.html' => '.html', '/foo/bar.xyz.html' => '.xyz.html', '/foo/bar/' => '', '/foo/bar.xyz/' => '', - '/foo.xyz/bar.xyz/' => '' + '/foo.xyz/bar.xyz/' => '', } # Check expected.each_pair do |input, expected_output| actual_output = data_source.send(:ext_of, input)