Sha256: ba2756da649a9103395a15a32fbb3790015ccd2ede2cbab22242a1f38b455813

Contents?: true

Size: 714 Bytes

Versions: 27

Compression:

Stored size: 714 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
        subject.autoload_code_paths.should include('features/support')
        subject.autoload_code_paths.should 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
        subject.autoload_code_paths.should == ['foo/bar/baz']
      end
    end
  end
end

Version data entries

27 entries across 25 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/spec/cucumber/configuration_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/spec/cucumber/configuration_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/spec/cucumber/configuration_spec.rb
cucumber-1.3.20 spec/cucumber/configuration_spec.rb
cucumber-1.3.19 spec/cucumber/configuration_spec.rb
cucumber-1.3.18 spec/cucumber/configuration_spec.rb
cucumber-1.3.17 spec/cucumber/configuration_spec.rb
cucumber-1.3.16 spec/cucumber/configuration_spec.rb
cucumber-1.3.15 spec/cucumber/configuration_spec.rb
cucumber-1.3.14 spec/cucumber/configuration_spec.rb
cucumber-1.3.13 spec/cucumber/configuration_spec.rb
cucumber-1.3.12 spec/cucumber/configuration_spec.rb
cucumber-1.3.11 spec/cucumber/configuration_spec.rb
cucumber-1.3.10 spec/cucumber/configuration_spec.rb
cucumber-1.3.9 spec/cucumber/configuration_spec.rb
cucumber-1.3.8 spec/cucumber/configuration_spec.rb
cucumber-1.3.7 spec/cucumber/configuration_spec.rb
cucumber-1.3.6 spec/cucumber/configuration_spec.rb
cucumber-1.3.5 spec/cucumber/configuration_spec.rb
cucumber-1.3.4 spec/cucumber/configuration_spec.rb