tracks/features/step_definitions/stats_steps.rb
Reinier Balt 43440eaf33 add cucumber for integration testing and add a feature for statistics
refactor some stuff to support testing statistisc
2009-04-13 22:26:20 +02:00

13 lines
458 B
Ruby

When /^I click on the chart for actions done in the last 12 months$/ do
# cannot really click the chart which is a swf
visit stats_path + "/actions_done_last_years"
end
Then /^I should see a chart$/ do
response.body.should =~ /open-flash-chart/m
end
When /^I click on the chart for running time of all incomplete actions$/ do
# cannot really click the chart which is a swf
visit stats_path + "/show_selected_actions_from_chart/art?index=0"
end