forked from minitest/minitest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For "fun", I defined a rubocop config that best represents "Seattle S…
…tyle". 14 issues later (https://github.com/bbatsov/rubocop/issues/created_by/zenspider) I wound up with the following: Update all old single quoted strings to double quoted. Get rid of some Really::Old::Coding::Styles(). Update for minor consistency issues. Found and fixed some odd indentation issues Marked more named args as optional by prefixing with _ Switched all %x array thingies to use square brackets Swiched from Hash#has_key? to #key? because it is deprecated. and probably more. Was it worth my time? Probably not, but it was an interesting experiment. [git-p4: depot-paths = "//src/minitest/dev/": change = 9952]
- Loading branch information
Showing
14 changed files
with
188 additions
and
195 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# -*- ruby -*- | ||
|
||
require 'rubygems' | ||
require 'hoe' | ||
require "rubygems" | ||
require "hoe" | ||
|
||
Hoe.plugin :seattlerb | ||
|
||
Hoe.spec 'minitest' do | ||
developer 'Ryan Davis', '[email protected]' | ||
Hoe.spec "minitest" do | ||
developer "Ryan Davis", "[email protected]" | ||
|
||
license "MIT" | ||
|
||
|
@@ -25,12 +25,12 @@ task :specs do | |
|
||
map = { | ||
/(must_throw)s/ => '\1', | ||
/(?!not)_same/ => '_be_same_as', | ||
/_in_/ => '_be_within_', | ||
/_operator/ => '_be', | ||
/_includes/ => '_include', | ||
/(?!not)_same/ => "_be_same_as", | ||
/_in_/ => "_be_within_", | ||
/_operator/ => "_be", | ||
/_includes/ => "_include", | ||
/(must|wont)_(.*_of|nil|silent|empty)/ => '\1_be_\2', | ||
/must_raises/ => 'must_raise', | ||
/must_raises/ => "must_raise", | ||
} | ||
|
||
expectations = Minitest::Expectations.public_instance_methods.map(&:to_s) | ||
|
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
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
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
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
Oops, something went wrong.