Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add String::online method (to check if we are online and the Url provided is accessible #70

Open
DinisCruz opened this issue Feb 10, 2015 · 0 comments

Comments

@DinisCruz
Copy link
Contributor

the String (i.e. @) in this case would be the URL to check (maybe with an optional parameter used to match some content inside the page)

here is an example of where this test would be useful

skip_Tests_If_Offline = (testSuite,next)=>
  url = "https://www.google.com"
  url.GET (html)=>
        if not html
          for test in testSuite.tests
            test.pending = true
        next()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant