From 3ac02f342a8cd68a8a56530a794120a57014298c Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 14 Dec 2011 10:26:13 -0800 Subject: [PATCH] Use .mustache file extension --- spec/_files/{apostrophe.html => apostrophe.mustache} | 0 ...2.html => array_of_partials_implicit_partial.2.mustache} | 0 ...ial.html => array_of_partials_implicit_partial.mustache} | 0 ..._partial.2.html => array_of_partials_partial.2.mustache} | 0 ...ials_partial.html => array_of_partials_partial.mustache} | 0 .../{array_of_strings.html => array_of_strings.mustache} | 0 ...rings_options.html => array_of_strings_options.mustache} | 0 .../{array_partial.2.html => array_partial.2.mustache} | 0 spec/_files/{array_partial.html => array_partial.mustache} | 0 ...ng_whitespace.html => bug_11_eating_whitespace.mustache} | 0 spec/_files/{comments.html => comments.mustache} | 0 spec/_files/{complex.html => complex.mustache} | 0 spec/_files/{delimiters.html => delimiters.mustache} | 0 spec/_files/{dot_notation.html => dot_notation.mustache} | 0 spec/_files/{double_render.html => double_render.mustache} | 0 .../{empty_partial.2.html => empty_partial.2.mustache} | 0 spec/_files/{empty_partial.html => empty_partial.mustache} | 0 .../_files/{empty_sections.html => empty_sections.mustache} | 0 .../_files/{empty_template.html => empty_template.mustache} | 0 .../{error_not_found.html => error_not_found.mustache} | 0 spec/_files/{escaped.html => escaped.mustache} | 0 ...r_order_sections.html => higher_order_sections.mustache} | 0 .../{inverted_section.html => inverted_section.mustache} | 0 ..._questionmarks.html => keys_with_questionmarks.mustache} | 0 spec/_files/{nesting.html => nesting.mustache} | 0 spec/_files/{null_string.html => null_string.mustache} | 0 ...artial_recursion.2.html => partial_recursion.2.mustache} | 0 .../{partial_recursion.html => partial_recursion.mustache} | 0 ...h_same_names.html => recursion_with_same_names.mustache} | 0 ...se_of_enumerables.html => reuse_of_enumerables.mustache} | 0 ...{section_as_context.html => section_as_context.mustache} | 0 spec/_files/{simple.html => simple.mustache} | 0 ...{template_partial.2.html => template_partial.2.mustache} | 0 .../{template_partial.html => template_partial.mustache} | 0 spec/_files/{two_in_a_row.html => two_in_a_row.mustache} | 0 spec/_files/{two_sections.html => two_sections.mustache} | 0 spec/_files/{unescaped.html => unescaped.mustache} | 0 .../_files/{unknown_pragma.html => unknown_pragma.mustache} | 0 .../_files/{view_partial.2.html => view_partial.2.mustache} | 0 spec/_files/{view_partial.html => view_partial.mustache} | 0 ...tespace_partial.2.html => whitespace_partial.2.mustache} | 0 ...{whitespace_partial.html => whitespace_partial.mustache} | 0 spec/mustache_spec.rb | 6 +++--- 43 files changed, 3 insertions(+), 3 deletions(-) rename spec/_files/{apostrophe.html => apostrophe.mustache} (100%) rename spec/_files/{array_of_partials_implicit_partial.2.html => array_of_partials_implicit_partial.2.mustache} (100%) rename spec/_files/{array_of_partials_implicit_partial.html => array_of_partials_implicit_partial.mustache} (100%) rename spec/_files/{array_of_partials_partial.2.html => array_of_partials_partial.2.mustache} (100%) rename spec/_files/{array_of_partials_partial.html => array_of_partials_partial.mustache} (100%) rename spec/_files/{array_of_strings.html => array_of_strings.mustache} (100%) rename spec/_files/{array_of_strings_options.html => array_of_strings_options.mustache} (100%) rename spec/_files/{array_partial.2.html => array_partial.2.mustache} (100%) rename spec/_files/{array_partial.html => array_partial.mustache} (100%) rename spec/_files/{bug_11_eating_whitespace.html => bug_11_eating_whitespace.mustache} (100%) rename spec/_files/{comments.html => comments.mustache} (100%) rename spec/_files/{complex.html => complex.mustache} (100%) rename spec/_files/{delimiters.html => delimiters.mustache} (100%) rename spec/_files/{dot_notation.html => dot_notation.mustache} (100%) rename spec/_files/{double_render.html => double_render.mustache} (100%) rename spec/_files/{empty_partial.2.html => empty_partial.2.mustache} (100%) rename spec/_files/{empty_partial.html => empty_partial.mustache} (100%) rename spec/_files/{empty_sections.html => empty_sections.mustache} (100%) rename spec/_files/{empty_template.html => empty_template.mustache} (100%) rename spec/_files/{error_not_found.html => error_not_found.mustache} (100%) rename spec/_files/{escaped.html => escaped.mustache} (100%) rename spec/_files/{higher_order_sections.html => higher_order_sections.mustache} (100%) rename spec/_files/{inverted_section.html => inverted_section.mustache} (100%) rename spec/_files/{keys_with_questionmarks.html => keys_with_questionmarks.mustache} (100%) rename spec/_files/{nesting.html => nesting.mustache} (100%) rename spec/_files/{null_string.html => null_string.mustache} (100%) rename spec/_files/{partial_recursion.2.html => partial_recursion.2.mustache} (100%) rename spec/_files/{partial_recursion.html => partial_recursion.mustache} (100%) rename spec/_files/{recursion_with_same_names.html => recursion_with_same_names.mustache} (100%) rename spec/_files/{reuse_of_enumerables.html => reuse_of_enumerables.mustache} (100%) rename spec/_files/{section_as_context.html => section_as_context.mustache} (100%) rename spec/_files/{simple.html => simple.mustache} (100%) rename spec/_files/{template_partial.2.html => template_partial.2.mustache} (100%) rename spec/_files/{template_partial.html => template_partial.mustache} (100%) rename spec/_files/{two_in_a_row.html => two_in_a_row.mustache} (100%) rename spec/_files/{two_sections.html => two_sections.mustache} (100%) rename spec/_files/{unescaped.html => unescaped.mustache} (100%) rename spec/_files/{unknown_pragma.html => unknown_pragma.mustache} (100%) rename spec/_files/{view_partial.2.html => view_partial.2.mustache} (100%) rename spec/_files/{view_partial.html => view_partial.mustache} (100%) rename spec/_files/{whitespace_partial.2.html => whitespace_partial.2.mustache} (100%) rename spec/_files/{whitespace_partial.html => whitespace_partial.mustache} (100%) diff --git a/spec/_files/apostrophe.html b/spec/_files/apostrophe.mustache similarity index 100% rename from spec/_files/apostrophe.html rename to spec/_files/apostrophe.mustache diff --git a/spec/_files/array_of_partials_implicit_partial.2.html b/spec/_files/array_of_partials_implicit_partial.2.mustache similarity index 100% rename from spec/_files/array_of_partials_implicit_partial.2.html rename to spec/_files/array_of_partials_implicit_partial.2.mustache diff --git a/spec/_files/array_of_partials_implicit_partial.html b/spec/_files/array_of_partials_implicit_partial.mustache similarity index 100% rename from spec/_files/array_of_partials_implicit_partial.html rename to spec/_files/array_of_partials_implicit_partial.mustache diff --git a/spec/_files/array_of_partials_partial.2.html b/spec/_files/array_of_partials_partial.2.mustache similarity index 100% rename from spec/_files/array_of_partials_partial.2.html rename to spec/_files/array_of_partials_partial.2.mustache diff --git a/spec/_files/array_of_partials_partial.html b/spec/_files/array_of_partials_partial.mustache similarity index 100% rename from spec/_files/array_of_partials_partial.html rename to spec/_files/array_of_partials_partial.mustache diff --git a/spec/_files/array_of_strings.html b/spec/_files/array_of_strings.mustache similarity index 100% rename from spec/_files/array_of_strings.html rename to spec/_files/array_of_strings.mustache diff --git a/spec/_files/array_of_strings_options.html b/spec/_files/array_of_strings_options.mustache similarity index 100% rename from spec/_files/array_of_strings_options.html rename to spec/_files/array_of_strings_options.mustache diff --git a/spec/_files/array_partial.2.html b/spec/_files/array_partial.2.mustache similarity index 100% rename from spec/_files/array_partial.2.html rename to spec/_files/array_partial.2.mustache diff --git a/spec/_files/array_partial.html b/spec/_files/array_partial.mustache similarity index 100% rename from spec/_files/array_partial.html rename to spec/_files/array_partial.mustache diff --git a/spec/_files/bug_11_eating_whitespace.html b/spec/_files/bug_11_eating_whitespace.mustache similarity index 100% rename from spec/_files/bug_11_eating_whitespace.html rename to spec/_files/bug_11_eating_whitespace.mustache diff --git a/spec/_files/comments.html b/spec/_files/comments.mustache similarity index 100% rename from spec/_files/comments.html rename to spec/_files/comments.mustache diff --git a/spec/_files/complex.html b/spec/_files/complex.mustache similarity index 100% rename from spec/_files/complex.html rename to spec/_files/complex.mustache diff --git a/spec/_files/delimiters.html b/spec/_files/delimiters.mustache similarity index 100% rename from spec/_files/delimiters.html rename to spec/_files/delimiters.mustache diff --git a/spec/_files/dot_notation.html b/spec/_files/dot_notation.mustache similarity index 100% rename from spec/_files/dot_notation.html rename to spec/_files/dot_notation.mustache diff --git a/spec/_files/double_render.html b/spec/_files/double_render.mustache similarity index 100% rename from spec/_files/double_render.html rename to spec/_files/double_render.mustache diff --git a/spec/_files/empty_partial.2.html b/spec/_files/empty_partial.2.mustache similarity index 100% rename from spec/_files/empty_partial.2.html rename to spec/_files/empty_partial.2.mustache diff --git a/spec/_files/empty_partial.html b/spec/_files/empty_partial.mustache similarity index 100% rename from spec/_files/empty_partial.html rename to spec/_files/empty_partial.mustache diff --git a/spec/_files/empty_sections.html b/spec/_files/empty_sections.mustache similarity index 100% rename from spec/_files/empty_sections.html rename to spec/_files/empty_sections.mustache diff --git a/spec/_files/empty_template.html b/spec/_files/empty_template.mustache similarity index 100% rename from spec/_files/empty_template.html rename to spec/_files/empty_template.mustache diff --git a/spec/_files/error_not_found.html b/spec/_files/error_not_found.mustache similarity index 100% rename from spec/_files/error_not_found.html rename to spec/_files/error_not_found.mustache diff --git a/spec/_files/escaped.html b/spec/_files/escaped.mustache similarity index 100% rename from spec/_files/escaped.html rename to spec/_files/escaped.mustache diff --git a/spec/_files/higher_order_sections.html b/spec/_files/higher_order_sections.mustache similarity index 100% rename from spec/_files/higher_order_sections.html rename to spec/_files/higher_order_sections.mustache diff --git a/spec/_files/inverted_section.html b/spec/_files/inverted_section.mustache similarity index 100% rename from spec/_files/inverted_section.html rename to spec/_files/inverted_section.mustache diff --git a/spec/_files/keys_with_questionmarks.html b/spec/_files/keys_with_questionmarks.mustache similarity index 100% rename from spec/_files/keys_with_questionmarks.html rename to spec/_files/keys_with_questionmarks.mustache diff --git a/spec/_files/nesting.html b/spec/_files/nesting.mustache similarity index 100% rename from spec/_files/nesting.html rename to spec/_files/nesting.mustache diff --git a/spec/_files/null_string.html b/spec/_files/null_string.mustache similarity index 100% rename from spec/_files/null_string.html rename to spec/_files/null_string.mustache diff --git a/spec/_files/partial_recursion.2.html b/spec/_files/partial_recursion.2.mustache similarity index 100% rename from spec/_files/partial_recursion.2.html rename to spec/_files/partial_recursion.2.mustache diff --git a/spec/_files/partial_recursion.html b/spec/_files/partial_recursion.mustache similarity index 100% rename from spec/_files/partial_recursion.html rename to spec/_files/partial_recursion.mustache diff --git a/spec/_files/recursion_with_same_names.html b/spec/_files/recursion_with_same_names.mustache similarity index 100% rename from spec/_files/recursion_with_same_names.html rename to spec/_files/recursion_with_same_names.mustache diff --git a/spec/_files/reuse_of_enumerables.html b/spec/_files/reuse_of_enumerables.mustache similarity index 100% rename from spec/_files/reuse_of_enumerables.html rename to spec/_files/reuse_of_enumerables.mustache diff --git a/spec/_files/section_as_context.html b/spec/_files/section_as_context.mustache similarity index 100% rename from spec/_files/section_as_context.html rename to spec/_files/section_as_context.mustache diff --git a/spec/_files/simple.html b/spec/_files/simple.mustache similarity index 100% rename from spec/_files/simple.html rename to spec/_files/simple.mustache diff --git a/spec/_files/template_partial.2.html b/spec/_files/template_partial.2.mustache similarity index 100% rename from spec/_files/template_partial.2.html rename to spec/_files/template_partial.2.mustache diff --git a/spec/_files/template_partial.html b/spec/_files/template_partial.mustache similarity index 100% rename from spec/_files/template_partial.html rename to spec/_files/template_partial.mustache diff --git a/spec/_files/two_in_a_row.html b/spec/_files/two_in_a_row.mustache similarity index 100% rename from spec/_files/two_in_a_row.html rename to spec/_files/two_in_a_row.mustache diff --git a/spec/_files/two_sections.html b/spec/_files/two_sections.mustache similarity index 100% rename from spec/_files/two_sections.html rename to spec/_files/two_sections.mustache diff --git a/spec/_files/unescaped.html b/spec/_files/unescaped.mustache similarity index 100% rename from spec/_files/unescaped.html rename to spec/_files/unescaped.mustache diff --git a/spec/_files/unknown_pragma.html b/spec/_files/unknown_pragma.mustache similarity index 100% rename from spec/_files/unknown_pragma.html rename to spec/_files/unknown_pragma.mustache diff --git a/spec/_files/view_partial.2.html b/spec/_files/view_partial.2.mustache similarity index 100% rename from spec/_files/view_partial.2.html rename to spec/_files/view_partial.2.mustache diff --git a/spec/_files/view_partial.html b/spec/_files/view_partial.mustache similarity index 100% rename from spec/_files/view_partial.html rename to spec/_files/view_partial.mustache diff --git a/spec/_files/whitespace_partial.2.html b/spec/_files/whitespace_partial.2.mustache similarity index 100% rename from spec/_files/whitespace_partial.2.html rename to spec/_files/whitespace_partial.2.mustache diff --git a/spec/_files/whitespace_partial.html b/spec/_files/whitespace_partial.mustache similarity index 100% rename from spec/_files/whitespace_partial.html rename to spec/_files/whitespace_partial.mustache diff --git a/spec/mustache_spec.rb b/spec/mustache_spec.rb index 7edc071..e04bec1 100644 --- a/spec/mustache_spec.rb +++ b/spec/mustache_spec.rb @@ -21,13 +21,13 @@ RHINO_JAR = "org.mozilla.javascript.tools.shell.Main" def load_test(name, is_partial=false) view = File.read(File.join(FILES, "#{name}.js")) - template = File.read(File.join(FILES, "#{name}.html")).to_json + template = File.read(File.join(FILES, "#{name}.mustache")).to_json expect = File.read(File.join(FILES, "#{name}.txt")) test = [view, template, expect] if is_partial - test << File.read(File.join(FILES, "#{name}.2.html")).to_json + test << File.read(File.join(FILES, "#{name}.2.mustache")).to_json end test @@ -238,7 +238,7 @@ describe "mustache" do end end - context "running in Rhino (Mozilla)" do + context "running in Rhino (Mozilla, Java)" do if `java #{RHINO_JAR} 'foo' 2>&1` !~ /ClassNotFoundException/ before(:all) do $stdout.write "Testing in Rhino "