page_object_stubs

PageObject stub generator for RubyMine.


License
MIT-feh
Install
gem install page_object_stubs -v 2.0.1

Documentation

PageObjectStubs

Gem Version Dependency Status Build Status Coverage Status

PageObject stub generator for RubyMine.

targets = Dir.glob(File.join(__dir__, '..', 'page', '*_page.rb'))
output  = File.join(__dir__, '..', 'stub')
exclude = /#{Regexp.escape('base_page.rb')}/
PageObjectStubs.generate targets: targets, output: output, exclude: exclude
# Creates stubs from target Ruby files in output folder with the format
# target_filename_stub.rb
#
# Note the output folder is **DELETED** each time stubs are generated.
#
# @param [Hash] opts
# @option opts [Array<File>] :targets Array of target files to create stubs from (required)
# @option opts [Dir] :output Folder to create stubs in (required)
# @option opts [Regexp] :exclude Exclusion regex use to reject targets (optional)

Contributing

  1. Fork it ( https://github.com/bootstraponline/page_object_stubs/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request