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.3.7 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.3.6 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.3.5 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.3.4 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.3.3 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.3.2 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.3.1 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classiccms-0.3.0 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
spork-0.9.2 spec/spork/test_framework_shared_examples.rb
classiccms-0.2.4.pre vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
spork-0.9.1 spec/spork/test_framework_shared_examples.rb
spork-1.0.0rc3 spec/spork/test_framework_shared_examples.rb
classicCMS-0.2.3 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classicCMS-0.2.2 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classicCMS-0.2.1 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classicCMS-0.2.0 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
classicCMS-0.1.2 vendor/bundle/gems/spork-0.9.0/spec/spork/test_framework_shared_examples.rb
spork-1.0.0rc2 spec/spork/test_framework_shared_examples.rb
spork-1.0.0rc2-x86-mswin32 spec/spork/test_framework_shared_examples.rb
spork-1.0.0rc2-x86-mingw32 spec/spork/test_framework_shared_examples.rb