Support both RSpec 1.x and 2.x

This commit is contained in:
Josef Stribny 2013-05-13 15:59:26 +02:00
parent 55c720ba9f
commit 327c0007b9
1 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
require 'spec'
require 'spec/mocks'
begin
require 'rspec'
require 'rspec/mocks'
rescue LoadError
require 'spec'
require 'spec/mocks'
end
Shindo.tests("Vcloud::Compute | disk_requests", ['vcloud']) do