diff options
Diffstat (limited to 'activejob/test/support/job_buffer.rb')
-rw-r--r-- | activejob/test/support/job_buffer.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/activejob/test/support/job_buffer.rb b/activejob/test/support/job_buffer.rb new file mode 100644 index 0000000000..620cb5288d --- /dev/null +++ b/activejob/test/support/job_buffer.rb @@ -0,0 +1,19 @@ +module JobBuffer + class << self + def clear + values.clear + end + + def add(value) + values << value + end + + def values + @values ||= [] + end + + def last_value + values.last + end + end +end |