Then /^I should see all the Braintree countries in the country select with the following at the top:$/ do |table| divider = "---" top_country_names = table.raw.flatten all_country_names = Braintree::Address::CountryNames.map(&:first) expected_country_names = [top_country_names, divider, all_country_names].flatten page.should have_select("Country", :options => expected_country_names) end