Skip to content

Instantly share code, notes, and snippets.

@costa
Created March 30, 2014 12:04
Show Gist options
  • Select an option

  • Save costa/9871855 to your computer and use it in GitHub Desktop.

Select an option

Save costa/9871855 to your computer and use it in GitHub Desktop.
Re-using mail_view's "actions" for basic Rails view specs. -> ./specs/views/
describe MailPreview do
MailPreview.new.public_methods(false).each do |e|
example "##{e}" do
subject.send(e).should_not be_blank
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment