test/samples/sample_spec.rb in test-queue-0.6.0 vs test/samples/sample_spec.rb in test-queue-0.7.0
- old
+ new
@@ -1,24 +1,24 @@
require 'rspec'
-describe 'RSpecEqual' do
+RSpec::describe 'RSpecEqual' do
it 'checks equality' do
expect(1).to eq 1
end
end
30.times do |i|
- describe "RSpecSleep(#{i})" do
+ RSpec::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
+ RSpec::describe 'RSpecFailure' do
it 'fails' do
expect(:foo).to eq :bar
end
end
end