Sha256: f0f721f42eb190ac5b4f08e117e06b2124389371a59594eefc1fa91f3f94b25a

Contents?: true

Size: 396 Bytes

Versions: 10

Compression:

Stored size: 396 Bytes

Contents

require 'rspec'

describe 'RSpecEqual' do
  it 'checks equality' do
    expect(1).to eq 1
  end
end

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

if ENV["FAIL"]
  describe 'RSpecFailure' do
    it 'fails' do
      expect(:foo).to eq :bar
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
test-queue-0.6.0 test/samples/sample_spec.rb
test-queue-0.5.0 test/samples/sample_spec.rb
test-queue-patched-0.4.5 test/samples/sample_spec.rb
test-queue-patched-0.4.4 test/samples/sample_spec.rb
test-queue-patched-0.4.3 test/samples/sample_spec.rb
test-queue-0.4.2 test/samples/sample_spec.rb
test-queue-0.4.1 test/samples/sample_spec.rb
test-queue-0.4.0 test/samples/sample_spec.rb
test-queue-0.3.1 test/samples/sample_spec.rb
test-queue-0.3.0 test/samples/sample_spec.rb