72
58
@statement.call('button_confirm',[@statement.id])
76
61
##############################################################################
77
62
And /^confirm the statement and see it confirmed$/ do
78
63
# @statement.wkf_action('button_confirm')
79
64
@statement.call('button_confirm',[@statement.id])
65
@statement=AccountBankStatement.find(@statement.id, :fields=>['id', 'state', 'line_ids'])
81
66
@statement.state.should == 'confirm'
83
69
##############################################################################
85
70
Given /^I take the bank statement called (\w+)$/ do |bankStatement_name|
86
71
@statement=AccountBankStatement.find(:first,:domain=>[['name','=',bankStatement_name]])
87
72
@statement.should be_true