Sha256: e2520f795e6750a8fbb9642e737e4b26b494a0f947c43cc8fc37eb57de5e3b71

Contents?: true

Size: 711 Bytes

Versions: 72

Compression:

Stored size: 711 Bytes

Contents

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

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

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

Version data entries

72 entries across 72 versions & 3 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.7.4 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.7.3 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
spork-1.0.0rc4 spec/spork/test_framework_shared_examples.rb
spork-1.0.0rc4-x86-mswin32 spec/spork/test_framework_shared_examples.rb
spork-1.0.0rc4-x86-mingw32 spec/spork/test_framework_shared_examples.rb
classiccms-0.7.2 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.7.1 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.7.0 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.9 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.8 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.7 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.6 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.5 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.4 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.3 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.2 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.1 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.6.0 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.5.17 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb