Sha256: 51b4a6095dd9553fff7313119eae0998c7e3592be34f37be3f6ab32a53a9ec73
Contents?: true
Size: 836 Bytes
Versions: 3
Compression:
Stored size: 836 Bytes
Contents
require 'spec_helper' describe Evergreen::Helper do let(:suite) { Evergreen::Suite.new } subject { Evergreen::Helper.new(suite, 'spec_helper.js') } its(:name) { should == 'spec_helper.js' } its(:root) { should == File.expand_path('suite1', File.dirname(__FILE__)) } its(:full_path) { should == File.expand_path("spec/javascripts/helpers/spec_helper.js", Evergreen.root) } its(:contents) { should =~ %r(var SpecHelper = { spec: 'helper' };) } context "with coffeescript" do subject { Evergreen::Helper.new(suite, 'spec_helper.coffee') } its(:contents) { should =~ /window.CoffeeSpecHelper/ } end context "with existing spec file" do it { should exist } end context "with missing spec file" do subject { Evergreen::Helper.new(suite, 'does_not_exist.js') } it { should_not exist } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
evergreen-1.1.2 | spec/helper_spec.rb |
evergreen-1.1.0 | spec/helper_spec.rb |
evergreen-1.0.1 | spec/helper_spec.rb |