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