Permalink
Browse files

Fix specs by running inline

  • Loading branch information...
jamesdabbs committed May 21, 2014
1 parent 7f18f3d commit 7d34a0e3fa197d85a315e9e53776813c27e62644
Showing with 6 additions and 1 deletion.
  1. +1 −1 README.md
  2. +3 −0 spec/features/cat_me_spec.rb
  3. +2 −0 spec/support/sidekiq.rb
View
@@ -30,7 +30,7 @@ Note that (in the interest of not actually depending on outside services), "serv
* [x] Select a queue backend
* [x] Run `CatRequest#fulfill!` in the background
* [ ] Make sure specs still pass
* [x] Make sure specs still pass
* [x] Bonus: find a better way of spec'ing the `open` system call
* [ ] Install a job administration system
* [ ] Determine appropriate failure / retry logic
@@ -15,8 +15,11 @@
end
it "fulfills a cat request" do
expect( @user.cat_requests ).to be_empty
click_on "Cat Me"
req = @user.cat_requests.last
expect( req.cat ).to be_present
expect( Air.shell.history.last ).to match /open.*#{req.cat.download_path}/
end
View
@@ -0,0 +1,2 @@
require 'sidekiq/testing'
Sidekiq::Testing.inline!

0 comments on commit 7d34a0e

Please sign in to comment.