Created
March 5, 2016 13:23
-
-
Save dixpac/20b9e4f90529268b15aa to your computer and use it in GitHub Desktop.
Write page! instead of save_and_open_page in integration tests
This file contains 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
# instead of save_and_open_page you can just type | |
# page! | |
module CapbaraExt | |
def page! | |
save_and_open_page | |
end | |
end | |
RSpec.configure do |config| | |
config.include CapbaraExt | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment