features/step_definitions/stats_steps.rb in trema-0.4.6 vs features/step_definitions/stats_steps.rb in trema-0.4.7

- old
+ new

@@ -14,21 +14,21 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # -Then /^the total number of tx packets should be:$/ do | table | +Then(/^the total number of tx packets should be:$/) do | table | sleep 1 - table.hashes[ 0 ].each_pair do | host, n | - count_packets( `trema show_stats #{ host } --tx` ).should == n.to_i + table.hashes[ 0].each_pair do | host, n | + count_packets(`trema show_stats #{ host } --tx`).should == n.to_i end end -Then /^the total number of rx packets should be:$/ do | table | +Then(/^the total number of rx packets should be:$/) do | table | sleep 1 - table.hashes[ 0 ].each_pair do | host, n | - count_packets( `trema show_stats #{ host } --rx` ).should == n.to_i + table.hashes[ 0].each_pair do | host, n | + count_packets(`trema show_stats #{ host } --rx`).should == n.to_i end end ### Local variables: