This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubocop/rspec/language' | |
module RuboCop | |
module Cop | |
module RSpec | |
class AggregateFailures < RuboCop::Cop::Cop | |
GROUP_BLOCKS = RuboCop::RSpec::Language::ExampleGroups::ALL | |
EXAMPLE_BLOCKS = RuboCop::RSpec::Language::Examples::ALL | |
def on_block(node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module FactoryGirl | |
module Doctor | |
module FloatDuration | |
refine Float do | |
def duration | |
t = self | |
format("%02d:%02d.%03d", t / 60, t % 60, t.modulo(1) * 1000) | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'stackprof', require: false | |
gem 'ruby-prof', require: false |