Skip to content
This repository has been archived by the owner on Apr 21, 2018. It is now read-only.

let user customize "on_failure" and "on_success" #11

Open
adelevie opened this issue Mar 4, 2015 · 0 comments
Open

let user customize "on_failure" and "on_success" #11

adelevie opened this issue Mar 4, 2015 · 0 comments

Comments

@adelevie
Copy link
Collaborator

adelevie commented Mar 4, 2015

it "is accessible" do
  on_failure = Proc.new do
    return false
  end
  on_success = Proc.new do
    return true
  end

  def site_is_accessible?(path)
    (Ra11y::Site.new(path, on_failure: on_failure, on_success: on_success).run
  end

  expect(site_is_accessible?("./_site")).to eql(true)
end
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant