# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 16214 | perforce_software | Move the p15-1 line. | ||
#1 | 16213 | perforce_software | Move files to proper depot path to view files correctly from project page. | ||
//guest/perforce_software/p4ruby/p15.1/test/19_spec_iterator_test.rb | |||||
#1 | 14756 | tjuricek | p15.1 branch of p4ruby. | ||
//guest/perforce_software/p4ruby/main/test/19_spec_iterator_test.rb | |||||
#1 | 14676 | tony |
Rework P4Ruby unit tests so they they are actually units. Now the test order is irrelevant as all tests are standalone. Tidied up the code formatting as well and removed all the tabs from the ruby sources files. Added a modeline for vim users so consistent indentation will be used. |
||
//guest/perforce_software/p4ruby/main/test/19_spec_iterator.rb | |||||
#2 | 14645 | jmistry |
Ensure iterator args are passed on Forgot to pass on any arguments that the user may have supplied to their call to 'each_<spec>'. Fixed this and also added a test for it. |
||
#1 | 14644 | jmistry |
Generic each_* methods Simple method to iterate over a particular type of spec This is a convenient wrapper for the pattern: clients = p4.run_clients clients.each do |c| client = p4.fetch_client( c['client'] ) <do something with spec> end NOTE: It's not possible to implicitly pass a block to a delegate method, so I've implemented it here directly. Could use Proc.new.call, but it looks like there is a serious performance impact with that method. job056520 : spec iterator implementation |