The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| ✗ https://alphagov.github.io/accessibility-tool-audit/test-cases.html | |
| * Form interactions: Forms must have submit buttons | |
| - Form has no submit button: //main[@id='wrapper']/div[91]/form | |
| - Form has no submit button: //main[@id='wrapper']/div[103]/form | |
| - Form has no submit button: //main[@id='wrapper']/div[108]/form | |
| * Form labels: Fields must have labels or titles | |
| - Field has no label or title attribute: //main[@id='wrapper']/div[91]/form/label[1]/input | |
| - Field has no label or title attribute: //main[@id='wrapper']/div[91]/form/label[2]/input | |
| - Field has no label or title attribute: //main[@id='wrapper']/div[91]/form/label[3]/input | |
| - Field has no label or title attribute: //main[@id='wrapper']/div[93]/label/input |
| require 'benchmark/ips' | |
| Benchmark.ips do |x| | |
| x.report('yours') { 0.class == Integer } | |
| x.report('mine') { 0.is_a? Integer } | |
| x.compare! | |
| end |
| begin | |
| require "bundler/inline" | |
| rescue LoadError => e | |
| $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
| raise e | |
| end | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| # Activate the gem you are reporting the issue against. |
| puts User.ancestors | |
| User | |
| User::GeneratedAssociationMethods | |
| #<#<Class:0x007f81401fdb28>:0x007f81401fdec0> | |
| ActiveRecord::Base | |
| GlobalID::Identification | |
| ActiveModel::Observing | |
| ActiveRecord::Store | |
| ActiveRecord::Serialization |
| puts RootController.ancestors | |
| RootController | |
| #<Module:0x007fc9371c7318> | |
| ApplicationController | |
| #<Module:0x007fc935d71c60> | |
| #<Module:0x007fc932fe66b0> | |
| #<Module:0x007fc932fe66d8> | |
| ActionController::Base | |
| Airbrake::Rails::ControllerMethods |
| [ | |
| { | |
| "userName": "alphagov", | |
| "repo": "asset-manager" | |
| }, | |
| { | |
| "userName": "alphagov", | |
| "repo": "calendars" | |
| }, | |
| { |
| 64 bytes from 216.58.213.174: icmp_seq=5 ttl=51 time=578.588 ms | |
| Request timeout for icmp_seq 6 | |
| 64 bytes from 216.58.213.174: icmp_seq=6 ttl=51 time=1022.820 ms | |
| 64 bytes from 216.58.213.174: icmp_seq=7 ttl=51 time=472.164 ms | |
| 64 bytes from 216.58.213.174: icmp_seq=8 ttl=51 time=1066.153 ms | |
| 64 bytes from 216.58.213.174: icmp_seq=9 ttl=51 time=601.242 ms | |
| 64 bytes from 216.58.213.174: icmp_seq=10 ttl=51 time=1097.604 ms | |
| Request timeout for icmp_seq 12 | |
| 64 bytes from 216.58.213.174: icmp_seq=11 ttl=51 time=2021.769 ms | |
| 64 bytes from 216.58.213.174: icmp_seq=12 ttl=51 time=1984.647 ms |
| describe Web::Controllers::Books::Index do | |
| let(:action) { described_class.new } | |
| let(:params) { Hash[] } | |
| it 'is successful' do | |
| response = action.call(params) | |
| expect(response[0]).to eq 200 | |
| end | |
| end |
| There are some historical reasons we cannot adopt semver. One of them is, | |
| ironically, related to compatibility. Ruby, inside its source tree and as a | |
| community, has had a history of making an assumption that each of the three | |
| numbers MAJOR, MINOR and TEENY should consist of a single digit, and so many | |
| libraries, applications and build tools rely on it. Due to this, we cannot | |
| waste digits for MAJOR and MINOR by incrementing them so frequently, or we will | |
| be running out of digits really soon. |