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