Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Commit

Permalink
Store arguments returned by block after yielding the runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed May 5, 2014
1 parent a867ef8 commit d1b1506
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -53,6 +53,7 @@ GEM
rack (1.5.2)
rack-protection (1.5.3)
rack
rake (10.3.1)
redis (3.0.7)
redis-namespace (1.4.1)
redis (~> 3.0.4)
Expand Down Expand Up @@ -109,6 +110,7 @@ DEPENDENCIES
pry
qe!
qu
rake
resque
resque-scheduler
rspec
Expand Down
1 change: 1 addition & 0 deletions lib/qe/testing/rspec.rb
Expand Up @@ -23,6 +23,7 @@ def on(date)

def matches?(block)
block.call
@options = @options.call if @options.respond_to?(:call)

result = jobs.any? do |job|
condition = job[:worker] == worker
Expand Down
1 change: 1 addition & 0 deletions qe.gemspec
Expand Up @@ -31,4 +31,5 @@ Gem::Specification.new do |s|
s.add_development_dependency "pry"
s.add_development_dependency "rspec"
s.add_development_dependency "sqlite3"
s.add_development_dependency "rake"
end

0 comments on commit d1b1506

Please sign in to comment.