Add this line to your application's Gemfile:
gem 'calapog'
And then execute:
$ bundle
Or install it yourself as:
$ gem install calapog
calapog generate SharedClassPage
will generate the following scaffold(replace Class with the name of your page):
features/pages/shared_class_name.rb
with the following code:
class SharedClassPage < CommonPage
def trait
end
def page_data_file
'class_page'
end
private
end
features/android/pages/class_name.rb
with the following code:
class Android::ClassPage < SharedClassPage
include Calabash::Android
private
end
features/ios/pages/class_name.rb
with the following code:
class IOS::ClassPage < SharedClassPage
include Calabash::IOS
private
end
Bug reports and pull requests are welcome on GitLab at https://gitlab.com/distortia/calapog. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.