PageObjectStubs

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
- Fork it ( https://github.com/bootstraponline/page_object_stubs/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request