Macros4Cuke is a lightweight library that adds a macro facility your Cucumber scenarios. In short, you can create any new step that replaces a sequence of lower-level steps. All this can be done directly in your feature files without programming step definitions.
Gemfile gem 'macros4cuke', '~> 0.2.02'
install gem install macros4cuke -v 0.2.02