Sha256: 3049fcc1c1b1f2216c4c2f92e6b9478ee3240e9da24ef0f75a86bd3821b97cec

Contents?: true

Size: 661 Bytes

Versions: 14

Compression:

Stored size: 661 Bytes

Contents

shared_examples_for "a TestFramework" do
  describe ".default_port" do
    it "uses the DEFAULT_PORT when the environment variable is not set" do
      @klass.default_port.should == @klass::DEFAULT_PORT
    end

    it 'uses ENV["#{short_name.upcase}_DRB"] as port if present' do
      env_name = "#{@klass.short_name.upcase}_DRB"
      orig, ENV[env_name] = ENV[env_name], "9000"
      begin
        @klass.default_port.should == 9000
      ensure
        ENV[env_name] = orig
      end
    end
  end

  describe ".helper_file" do
    it "returns ::HELPER_FILE for the TestFramework" do
      @klass.helper_file.should == @klass::HELPER_FILE
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
spork-0.9.0.rc8-x86-mswin32 spec/spork/test_framework_shared_examples.rb
spork-0.9.0.rc8-x86-mingw32 spec/spork/test_framework_shared_examples.rb
spork-0.9.0.rc8 spec/spork/test_framework_shared_examples.rb
spork-0.9.0.rc7 spec/spork/test_framework_shared_examples.rb
spork-0.9.0.rc6 spec/spork/test_framework_shared_examples.rb
spork-0.9.0.rc5 spec/spork/test_framework_shared_examples.rb
spork-0.9.0.rc4 spec/spork/test_framework_shared_examples.rb
spork-0.9.0.rc3 spec/spork/test_framework_shared_examples.rb
nimboids-spork-0.8.99 spec/spork/test_framework_shared_examples.rb
nimboids-spork-0.9.0.rc2 spec/spork/test_framework_shared_examples.rb
invo-sporknife-0.1.0.1 spec/spork/test_framework_shared_examples.rb
invo-sporknife-0.1.0 spec/spork/test_framework_shared_examples.rb
invo-sporknife-0.1.0.pre spec/spork/test_framework_shared_examples.rb
spork-0.9.0.rc2 spec/spork/test_framework_shared_examples.rb