PageObjectStubs Build Status Gem Version

PageObject stub generator for RubyMine.

targets       = Dir.glob(File.join(__dir__, '..', 'page', '*_page.rb'))
output_folder = File.join(__dir__, '..', 'stub')
PageObjectStubs.generate targets: targets, output_folder: output_folder, angularjs: false
# Creates stubs from target Ruby files in output folder with the format
# target_filename_stub.rb
#
# @param [Hash] opts
# @option opts [Array<File>] :targets Array of target files to create stubs from (required)
# @option opts [Dir] :output_folder Folder to create stubs in (required)
# @option opts [Boolean] :angularjs Enable angularjs support (optional, default false)
def generate opts={}

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