Sha256: 272966a199de6b4450060eb9d815b279bcea1249f4ac36ab07aa0b05bb8d32e4

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

require 'rspec'

describe 'RSpecEqual' do
  it 'checks equality' do
    1.should equal(1)
  end
end

500.times do |i|
  describe "RSpecSleep(#{i})" do
    it "sleeps" do
      start = Time.now
      sleep(0.25)
      (Time.now-start).should be_within(0.02).of(0.25)
    end
  end
end

describe 'RSpecFailure' do
  it 'fails' do
    :foo.should eq(:bar)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
test-queue-0.2.0 test/sample_spec.rb