Skip to content

Instantly share code, notes, and snippets.

@kschrader
Created August 5, 2009 22:31
Show Gist options
  • Save kschrader/163018 to your computer and use it in GitHub Desktop.
Save kschrader/163018 to your computer and use it in GitHub Desktop.
Given /^the following ad groups:$/ do |ad_groups_data|
ad_groups_data.hashes.each do |ad_group_data|
# set some defaults
ad_group_data[:name]||= "ad group 1"
ad_group_data[:paused] ||= false
ad_group = AdGroup.create_or_update_by_id!(ad_group_data)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment