Skip to content

Instantly share code, notes, and snippets.

@takkanm
Created February 5, 2019 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takkanm/f6228c2333ba636917846c32fa0cd9f3 to your computer and use it in GitHub Desktop.
Save takkanm/f6228c2333ba636917846c32fa0cd9f3 to your computer and use it in GitHub Desktop.
def feature(name, &block)
class_name = name.split.map(&:capitize).join
klass = Class.new(ApplicationSystemTestCase)
klass.class_eavl do
alias_method :secnario, :test
yield
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment