I hereby claim:
- I am jasonkarns on github.
- I am jasonkarns (https://keybase.io/jasonkarns) on keybase.
- I have a public key whose fingerprint is A0E8 D7D1 099F 66C3 7347 3D66 E87D 122A A9B1 B726
To claim this, I am signing this object:
| require 'axe/configuration' | |
| module Axe | |
| class FindsPage | |
| WEBDRIVER_NAMES = [ :page, :browser, :driver, :webdriver ] | |
| class << self | |
| alias :in :new | |
| end |
| require 'singleton' | |
| class Configuration | |
| include Singleton | |
| def init_with(attributes) | |
| attributes.map.each do |k,v| | |
| self.class.instance.instance_variable_set(:"@#{k}", v) | |
| end | |
| end |
| # named captures shouldn't *have* to be compared as a hash; | |
| # MatchData still returns the captures as a plain indexed array, | |
| # so matching against the indexed captures should still be allowed | |
| it "matches indexed captures against named captures" do | |
| expect(Regexp.new("(?<num>123)")).to match("a123a").with_captures("123") | |
| end | |
| # doesn't make sense to show the expected captures if the match itself fails; they're irrelevant at that point | |
| it "shows plain match failure message if match itself fails" do | |
| expect { |
| def matches?(page) | |
| @audit = @a11y_check.call Page.new page | |
| ::RSpec::Expectations::FailureAggregator.new(@audit.invocation, nil).aggregate do | |
| @audit.results.violations.each {|v| ::RSpec::Expectations.fail_with v.failure_message } | |
| end | |
| @audit.passed? | |
| end |
| module CustomMatchers | |
| class Match < RSpec::Matchers::BuiltIn::Match | |
| def matches?(actual) | |
| # first ensure the regex matched | |
| return false unless result = super | |
| # only continue if specifying captures | |
| return result unless expected_captures = @captures | |
| actual_captures = to_hash result |
| var DOMContentLoaded = function() { | |
| document.removeEventListener('DOMContentLoaded', DOMContentLoaded); | |
| document.body.appendChild(document.createElement('iframe')); | |
| }; | |
| document.addEventListener('DOMContentLoaded', DOMContentLoaded); |
| // require() some stuff from npm (like you were using browserify) | |
| // and then hit Run Code to run it on the right | |
| var d = require('domready'); | |
| d(function(){ | |
| alert("boo") | |
| }); |
| $ RBENV_DEBUG=1 rbenv update | pbcopy | |
| + [rbenv:15] enable -f /Users/David/.rbenv/bin/../libexec/rbenv-realpath.dylib realpath | |
| + [rbenv:21] '[' -n '' ']' | |
| ++ [rbenv:25] type -p greadlink readlink | |
| ++ [rbenv:25] head -1 | |
| + [rbenv:25] READLINK=/usr/bin/readlink | |
| + [rbenv:26] '[' -z /usr/bin/readlink ']' | |
| + [rbenv:50] '[' -z '' ']' | |
| + [rbenv:51] RBENV_ROOT=/Users/David/.rbenv | |
| + [rbenv:55] export RBENV_ROOT |
| { | |
| "README.md": { | |
| "command": "readme" | |
| }, | |
| "package.json": { | |
| "command": "package" | |
| }, | |
| "bower.json": { | |
| "command": "bower" | |
| }, |
I hereby claim:
To claim this, I am signing this object: