blackstart 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.txt CHANGED
@@ -3,7 +3,7 @@ Blackstart
3
3
  Blackstart is a small, subdued library for automated testing in Ruby. It
4
4
  doesn't depend on anything beyond the Ruby platform and doesn't modify the
5
5
  environment outside its conventional namespace. It's tested with a primitive
6
- program, not via an automated-testing library.
6
+ program, not via another automated-testing library.
7
7
 
8
8
  The blackstart is a small, subdued bird that eats bugs. A black start is when a
9
9
  power plant starts up without relying on the electrical grid.
@@ -79,11 +79,11 @@ Blackstart::Context#instance_exec. For example:
79
79
 
80
80
  class Blackstart::Context
81
81
  def instance_exec(*)
82
- puts "doing setup"
82
+ puts "before test"
83
83
  @variable = "example"
84
84
  super
85
85
  ensure
86
- puts "doing teardown"
86
+ puts "after test"
87
87
  end
88
88
  end
89
89
 
@@ -132,9 +132,9 @@ so you can re-run your tests in the same order.
132
132
  After a test fails, Blackstart.run writes a description of the test to the
133
133
  output stream. It gets this description by converting the test object to a
134
134
  string. When the test object is an instance of Proc, which is what
135
- Blackstart.add produces when used as expected, this string typically includes
136
- the file path and line number where it was defined: helpful, but it won't be
137
- immediately clear what was being tested.
135
+ Blackstart.add normally produces, this string typically includes the file path
136
+ and line number where it was defined: helpful, but it won't be immediately
137
+ clear what was being tested.
138
138
 
139
139
  You can improve this by making your own test objects instead of using
140
140
  Blackstart.add. Blackstart.run does not strictly need a sequence of Proc
data/blackstart.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "blackstart"
3
- s.version = "0.1.0"
3
+ s.version = "0.2.0"
4
4
  s.authors = ["Aaron Beckerman"]
5
5
  s.summary = "A small, subdued library for automated testing."
6
6
  s.licenses = ["MIT"]
@@ -191,14 +191,8 @@ end
191
191
  # which implies that Blackstart::Context should be a class.
192
192
  fail "" unless Blackstart::Context.equal? Blackstart::Context.new.class
193
193
 
194
- # Blackstart::Context.new should raise an exception if any non-block arguments
195
- # are sent.
196
- begin
197
- Blackstart::Context.new nil
198
- rescue ArgumentError
199
- else
200
- fail ""
201
- end
194
+ # A new context should have no instance variables.
195
+ fail "" unless 0 == Blackstart::Context.new.instance_variables.length
202
196
 
203
197
  # Test Blackstart.run:
204
198
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackstart
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aaron Beckerman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2024-03-19 00:00:00 -07:00
18
+ date: 2024-05-14 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21