Permalink
Browse files

test update

  • Loading branch information...
1 parent 0ff79ea commit f6ed10e596aa224e12033af68194c0611752d510 @ejschmitt committed Nov 24, 2011
Showing with 16 additions and 1 deletion.
  1. +16 −1 test/test_delayed_job_web.rb
@@ -4,8 +4,23 @@
ENV['RACK_ENV'] = 'test'
class Delayed::Job
+ class DelayedJobFake < Array
+ # fake out arel
+ def order(*args)
+ DelayedJobFake.new
+ end
+
+ def offset(*args)
+ DelayedJobFake.new
+ end
+
+ def limit(*args)
+ DelayedJobFake.new
+ end
+ end
+
def self.where(*args)
- []
+ DelayedJobFake.new
end
def self.count(*args)

0 comments on commit f6ed10e

Please sign in to comment.