Skip to content

Instantly share code, notes, and snippets.

View ivantsepp's full-sized avatar

Ivan Tse ivantsepp

View GitHub Profile
(function () {
function c() {
var e = document.createElement("link");
e.setAttribute("type", "text/css");
e.setAttribute("rel", "stylesheet");
e.setAttribute("href", f);
e.setAttribute("class", l);
document.body.appendChild(e)
}
function h() {
alert('hi');
@ivantsepp
ivantsepp / shoulda_focus.rb
Created May 3, 2016 22:38
Adds fcontext and fshould to shoulda
# This is inspired from http://qiita.com/osamu_takeuchi/items/256e044a3e802a5abff0
# and https://github.com/seattlerb/minitest-focus.
#
# Adds `fcontext` and `fshould` methods to shoulda-context. They mark their blocks as focused
# and `Context#create_test_from_should_hash` is overriden to add those test names to the
# Minitest filter arguments
module Shoulda
module Context
module ClassMethods

With a page of 100 print orders

Before

================================================================================

Running

GET /admin/print_orders
##################### GitHub ##################################
Style/Tab:
Description: 'No hard tabs.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
Enabled: true
Style/IndentationWidth:
Description: 'Use 2 spaces for indentation.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
Enabled: false