features/step_definitions/format_steps.rb in activeadmin-0.5.0 vs features/step_definitions/format_steps.rb in activeadmin-0.5.1

- old
+ new

@@ -46,6 +46,11 @@ end end Then /^I should download a CSV file for "([^"]*)" containing:$/ do |resource_name, table| step "I should download a CSV file with \",\" separator for \"#{resource_name}\" containing:", table -end \ No newline at end of file +end + +Then /^the CSV file should contain "([^"]*)" in quotes$/ do |text| + body = page.driver.response.body + body.should match(/\"#{text}\"/) +end