Skip to content

Instantly share code, notes, and snippets.

@pauldruziak
Created June 24, 2010 21:28
Show Gist options
  • Save pauldruziak/452010 to your computer and use it in GitHub Desktop.
Save pauldruziak/452010 to your computer and use it in GitHub Desktop.
it "should return created smtp account" do
doc = Nokogiri::XML(response.body)
exclude_columns = %w[id created_at updated_at]
SmtpAccount.column_names.each do |col|
unless exclude_columns.include? col
doc.search("smtp-account #{col.gsub('_', '-')}").text.should == attributes[col.to_sym].to_s
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment