Given /^I am on the Progress Bar page$/ do visit_page ProgressBarPage end Then /^the minimum value should be "(.+)"$/ do |minimum_value| on(ProgressBarPage).the_progress_min.should == minimum_value.to_i end Then /^the maximum value should be "(.+)"$/ do |maximum_value| on(ProgressBarPage).the_progress_max.should == maximum_value.to_i end Then /^the current value should be "(.+)"$/ do |current_value| on(ProgressBarPage).the_progress.should == current_value.to_i end