mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-12 10:24:22 +01:00
add cucumber for integration testing and add a feature for statistics
refactor some stuff to support testing statistisc
This commit is contained in:
parent
058079a0a7
commit
43440eaf33
11 changed files with 286 additions and 5 deletions
13
features/step_definitions/stats_steps.rb
Normal file
13
features/step_definitions/stats_steps.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue