expectations 0.2.8 → 1.0.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.
@@ -10,8 +10,7 @@ class Expectations::Suite
10
10
  Expectations::XmlString.new(string)
11
11
  end
12
12
 
13
- def execute(out=STDOUT)
14
- suite_result = Expectations::SuiteResults.new(out)
13
+ def execute(out=STDOUT, suite_result = Expectations::SuiteResults.new(out))
15
14
  return suite_result if @do_not_run
16
15
  benchmark = Benchmark.measure do
17
16
  expectations_for(ENV["LINE"]).each { |expectation| suite_result << expectation.execute }
data/rakefile.rb CHANGED
@@ -46,7 +46,7 @@ specification = Gem::Specification.new do |s|
46
46
  expect NoMethodError do
47
47
  Object.invalid_method_call
48
48
  end."
49
- s.version = "0.2.8"
49
+ s.version = "1.0.0"
50
50
  s.author = 'Jay Fields'
51
51
  s.description = "A lightweight unit testing framework. Tests (expectations) will be written as follows
52
52
  expect 2 do
@@ -70,4 +70,15 @@ Expectations do
70
70
  suite.expectations.first.file
71
71
  end
72
72
 
73
- end
73
+ expect o = Object.new do
74
+ suite = Expectations::Suite.new
75
+ suite.do_not_run
76
+ suite.execute(Silent, o)
77
+ end
78
+
79
+ expect Expectations::SuiteResults do
80
+ suite = Expectations::Suite.new
81
+ suite.do_not_run
82
+ suite.execute(Silent)
83
+ end
84
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Fields
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-29 00:00:00 +01:00
12
+ date: 2008-05-18 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency