Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve a few comments

  • Loading branch information...
commit dc4951c09d5442b418f80813bbce8a294e29e48a 1 parent c871d3d
@philc philc authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/scope.rb
View
8 lib/scope.rb
@@ -16,8 +16,8 @@ def self.inherited(subclass)
@contexts = [Context.new("")]
@context_for_test = {}
- # The tests defined in this test case. MiniTest::Unit::TestCase sorts these the test methods randomly
- # or alphabetically. Let's run them in the order they were defined, as that's least surprising.
+ # The tests defined in this test case. MiniTest::Unit::TestCase sorts these methods randomly or
+ # alphabetically. Let's run them in the order they were defined, as that's least surprising.
def test_methods()
tests = []
stack = [@contexts.first]
@@ -58,7 +58,7 @@ def self.should(name, &block)
def self.setup(&block) @contexts.last.add_setup(&block) end
def self.teardown(&block) @contexts.last.add_teardown(&block) end
- # setup_once blocks are only run just once for a context, and not on a per-test basis. They are useful
+ # setup_once blocks are run just once for a context, and not on a per-test basis. They are useful
# for integration tests with costly setup.
def self.setup_once(&block) @contexts.last.add_setup_once(&block) end
def self.teardown_once(&block) @contexts.last.add_teardown_once(&block) end
@@ -73,7 +73,7 @@ def self.focus
@focus_next_test = true
end
- # This is called by the MiniTest framework. This TestCase class is instantiated once per test method
+ # run() is called by the MiniTest framework. This TestCase class is instantiated once per test method
# defined, and then run() is called on each test case instance.
def run(test_runner)
test_name = self.__name__
Please sign in to comment.
Something went wrong with that request. Please try again.