Permalink
Browse files

Update to latest RSpec syntax

  • Loading branch information...
1 parent ff22c0a commit cd8818267e53bdf4cfe36340c4a74b0e87c34cc8 @sferik sferik committed Jan 7, 2014
Showing with 8 additions and 2 deletions.
  1. +1 −1 Gemfile
  2. +6 −0 spec/helper.rb
  3. +1 −1 spec/plugins_spec.rb
View
@@ -4,7 +4,7 @@ gem 'rake'
group :test do
gem 'coveralls', :require => false
- gem 'rspec', '>= 2.11'
+ gem 'rspec', '>= 2.14'
gem 'simplecov', :require => false
end
View
@@ -11,6 +11,12 @@
require 'delayed_job_mongoid'
require 'delayed/backend/shared_spec'
+RSpec.configure do |config|
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+end
+
Mongoid.configure do |config|
config.connect_to("dl_spec")
end
View
@@ -15,7 +15,7 @@
Delayed::Worker.reset
end
it "clears mongoid identity map" do
- Mongoid::IdentityMap.should_receive(:clear).once
+ expect(Mongoid::IdentityMap).to receive(:clear).once
job = described_class.enqueue SimpleJob.new, priority: 5
worker.work_off
end

0 comments on commit cd88182

Please sign in to comment.