Sha256: bb1de9aa4c6efc1a23bad71251e6dd1060ec4ced38829cb1b9e3a71ccc3fdb3b
Contents?: true
Size: 870 Bytes
Versions: 7
Compression:
Stored size: 870 Bytes
Contents
require 'spec_helper' describe Evergreen::Spec do let(:suite) { Evergreen::Suite.new } subject { Evergreen::Spec.new(suite, 'testing_spec.js') } its(:name) { should == 'testing_spec.js' } its(:root) { should == File.expand_path('suite1', File.dirname(__FILE__)) } its(:full_path) { should == File.expand_path("spec/javascripts/testing_spec.js", Evergreen.root) } its(:url) { should == "/run/testing_spec.js" } its(:contents) { should =~ /describe\('testing'/ } context "with coffeescript" do subject { Evergreen::Spec.new(suite, 'coffeescript_spec.coffee') } its(:contents) { should =~ /describe\('coffeescript', function/ } end context "with existing spec file" do it { should exist } end context "with missing spec file" do subject { Evergreen::Spec.new(suite, 'does_not_exist.js') } it { should_not exist } end end
Version data entries
7 entries across 7 versions & 1 rubygems