Created
April 14, 2015 13:06
-
-
Save zephyr-dev/512c474ead0f93cce8aa to your computer and use it in GitHub Desktop.
A proposal for refactoring Cuke helpers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative '../directory/where/those/modules/live' | |
World(InvestorGroups::MemberApplicationHelper) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module InvestorGroups | |
module MemberApplicationHelper | |
def disable_group_membership_appliction | |
within "#documents" do | |
click_edit_icon | |
choose(t('member_application.admin.not_currently_accepting')) | |
click_save | |
end | |
end | |
def enable_group_membership_appliction | |
within "#documents" do | |
click_edit_icon | |
choose(t('member_application.admin.currently_accepting')) | |
click_save | |
end | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module InvestorGroups | |
module MemberApplicationHelper | |
def disable_group_membership_appliction | |
within "#documents" do | |
click_edit_icon | |
choose(t('member_application.admin.not_currently_accepting')) | |
click_save | |
end | |
end | |
def enable_group_membership_appliction | |
within "#documents" do | |
click_edit_icon | |
choose(t('member_application.admin.currently_accepting')) | |
click_save | |
end | |
end | |
end | |
end | |
World(InvestorGroups::MemberApplicationHelper) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment