spec/lib/onebox_spec.rb in onebox-1.0.1 vs spec/lib/onebox_spec.rb in onebox-1.1.0
- old
+ new
@@ -24,10 +24,10 @@
expect(cache.fetch(url)).to be(nil)
end
end
describe "templates" do
- let(:templates) { Dir["templates/*.handlebars"] }
+ let(:templates) { Dir["templates/*.mustache"] - ["templates/_layout.mustache"] }
def expect_templates_to_not_match(text)
templates.each do |template|
expect(File.read(template)).not_to match(text)
end