spec/meta_spec.rb in evergreen-0.2.2 vs spec/meta_spec.rb in evergreen-0.3.0

- old
+ new

@@ -1,22 +1,31 @@ require 'spec_helper' describe Evergreen::Runner do subject { Evergreen::Runner.new(spec) } - let(:root) { File.expand_path('fixtures', File.dirname(__FILE__)) } + let(:spec) { Evergreen::Spec.new(root, template) } - context "with transactions spec" do - let(:spec) { Evergreen::Spec.new(root, 'transactions_spec.js') } - it { should pass } - end + context "with standard setup" do + let(:root) { File.expand_path('suite1', File.dirname(__FILE__)) } - context "with spec helper" do - let(:spec) { Evergreen::Spec.new(root, 'with_helper_spec.js') } - it { should pass } - end + context "with transactions spec" do + let(:template) { 'transactions_spec.js' } + it { should pass } + end - context "with template spec" do - let(:spec) { Evergreen::Spec.new(root, 'templates_spec.js') } - it { should pass } + context "with spec helper" do + let(:template) { 'with_helper_spec.js' } + it { should pass } + end + + context "with template spec" do + let(:template) { 'templates_spec.js' } + it { should pass } + end + + context "with slow failing spec" do + let(:template) { 'slow_spec.coffee' } + it { should_not pass } + end end end