Skip to content

Instantly share code, notes, and snippets.

@rgraff
Created September 24, 2009 21:19
Show Gist options
  • Save rgraff/193060 to your computer and use it in GitHub Desktop.
Save rgraff/193060 to your computer and use it in GitHub Desktop.
def should_assign_to(*names)
names.each do |name|
it "should assign @#{name}" do
# assert assigns(name.to_sym), "The action isn't assigning to @#{name}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment