diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2014-08-29 08:28:07 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2014-08-29 08:50:09 +0000 |
commit | d56caea4269abbc6d13f63de40e3b686b13a066f (patch) | |
tree | fbd5c96c4ce8b7e591669d28677cc51559cce38b /activejob/test/support | |
parent | 82cb3de461d15c1e59b49465ce714594a45b7f5f (diff) | |
download | rails-d56caea4269abbc6d13f63de40e3b686b13a066f.tar.gz rails-d56caea4269abbc6d13f63de40e3b686b13a066f.tar.bz2 rails-d56caea4269abbc6d13f63de40e3b686b13a066f.zip |
[ActiveJob] extract JobBuffer from helper
Diffstat (limited to 'activejob/test/support')
-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 |