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