Sha256: 63f1e1329b7ae0dc2ca3019ef855161f50f5492aa73ffd591b3815ce2ca0256a

Contents?: true

Size: 726 Bytes

Versions: 13

Compression:

Stored size: 726 Bytes

Contents

require 'spec_helper'

module Cucumber
  describe Configuration do
    describe ".default" do
      subject { Configuration.default }

      it "has an autoload_code_paths containing the standard support and step_definitions folders" do
        expect(subject.autoload_code_paths).to include('features/support')
        expect(subject.autoload_code_paths).to include('features/step_definitions')
      end
    end

    describe "with custom user options" do
      let(:user_options) { { :autoload_code_paths => ['foo/bar/baz'] } }
      subject { Configuration.new(user_options) }

      it "allows you to override the defaults" do
        expect(subject.autoload_code_paths).to eq ['foo/bar/baz']
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cucumber-2.0.2 spec/cucumber/configuration_spec.rb
cucumber-2.0.1 spec/cucumber/configuration_spec.rb
cucumber-2.0.0 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.rc.5 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.rc.4 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.rc.3 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.rc.2 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.rc.1 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.beta.5 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.beta.4 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.beta.3 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.beta.2 spec/cucumber/configuration_spec.rb
cucumber-2.0.0.beta.1 spec/cucumber/configuration_spec.rb