Sha256: 7cbe077858b4f0be2f2f51d0898a8aeef5a0c8f4cff810e79553fd408ed8b6fe
Contents?: true
Size: 709 Bytes
Versions: 4
Compression:
Stored size: 709 Bytes
Contents
require 'spec_helper' describe Evergreen::Template do let(:root) { File.expand_path('suite1', File.dirname(__FILE__)) } let(:suite) { Evergreen::Suite.new(root) } subject { Evergreen::Template.new(suite, 'one_template.html') } its(:name) { should == 'one_template.html' } its(:root) { should == root } its(:full_path) { should == "#{root}/spec/javascripts/templates/one_template.html" } its(:contents) { should =~ %r(<h1 id="from\-template">This is from the template</h1>) } context "with existing spec file" do it { should exist } end context "with missing spec file" do subject { Evergreen::Template.new(suite, 'does_not_exist.html') } it { should_not exist } end end
Version data entries
4 entries across 4 versions & 3 rubygems