Sha256: 1c86d0f236bf50241e5787a266d1a25844ef6ab98f689019e667e7d91b344eb5

Contents?: true

Size: 933 Bytes

Versions: 7

Compression:

Stored size: 933 Bytes

Contents

require_relative '../../spec_helper'
require 'soundcheck/project'
require 'soundcheck/frameworks'

describe "Frameworks" do
  let(:project) { Project.new(fixture("null-project")) }

  describe "Cucumber" do
    let(:framework) { Frameworks::Cucumber.new(project) }

    it "should find the cucumber framework" do
      project.stub!(:root => fixture("ruby-cucumber"))
      framework.present?.should be_true
    end
    
    it "should not find when not there" do
      project.stub(:root => fixture("null-project"))
      framework.present?.should be_false
    end

    it "should run with no args" do
      framework.command.should == "cucumber features"
    end

    it "should not run when args contain no cucumber files" do
      framework.command("spec/foo_spec.rb").should == nil
    end

    it "should run with args" do
      framework.command("features/a.feature").should == "cucumber features/a.feature"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
soundcheck-0.4.0 spec/soundcheck/frameworks/cucumber_spec.rb
soundcheck-0.3.0 spec/soundcheck/frameworks/cucumber_spec.rb
soundcheck-0.2.4.beta1 spec/soundcheck/frameworks/cucumber_spec.rb
soundcheck-0.2.3 spec/soundcheck/frameworks/cucumber_spec.rb
soundcheck-0.2.2 spec/soundcheck/frameworks/cucumber_spec.rb
soundcheck-0.2.1 spec/soundcheck/frameworks/cucumber_spec.rb
soundcheck-0.2.0 spec/soundcheck/frameworks/cucumber_spec.rb