Sha256: 74c3c542ebd4fd76df84fbad30d3a1c5c07bcdda8829c387d6bb81f504ebdb78

Contents?: true

Size: 985 Bytes

Versions: 3

Compression:

Stored size: 985 Bytes

Contents

require 'spec_helper'

describe Everqueen::Runner do
  let(:suite) { Everqueen::Suite.new }
  subject { Everqueen::Test.new(suite, template) }

  context "with standard setup" do
    before { Everqueen.root = File.expand_path('suite1', File.dirname(__FILE__)) }

    context "with transactions test" do
      let(:template) { 'transactions_test.js' }
      it { should pass }
    end

    context "with test helper" do
      let(:template) { 'with_helper_test.js' }
      it { should pass }
    end

    context "with slow failing test" do
      let(:template) { 'slow_test.coffee' }
      it { should_not pass }
    end
  end

  context "with modified setup" do
    before { Everqueen.root = File.expand_path('suite2', File.dirname(__FILE__)) }

    context "with awesome test" do
      let(:template) { 'awesome_test.js' }
      it { should pass }
    end

    context "with failing test" do
      let(:template) { 'failing_test.js' }
      it { should_not pass }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
everqueen-1.1.1 spec/meta_spec.rb
everqueen-1.1.0 spec/meta_spec.rb
everqueen-1.0.1 spec/meta_spec.rb