spicycode-micronaut 0.1.6.9.1 → 0.1.7

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 CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- Micronaut is an ultra light-weight BDD test framework. For the moment think of it is a prototype of
8
- RSpec lite. Definitely pre alpha at the moment.
7
+ Micronaut is a light-weight BDD test framework.
9
8
 
10
9
  == REQUIREMENTS:
11
10
 
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
3
3
  require 'rubygems/specification'
4
4
 
5
5
  GEM = "micronaut"
6
- GEM_VERSION = "0.1.6.9.1"
6
+ GEM_VERSION = "0.1.7"
7
7
  AUTHOR = "Chad Humphries"
8
8
  EMAIL = "chad@spicycode.com"
9
9
  HOMEPAGE = "http://spicycode.com"
@@ -4,6 +4,7 @@ $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
4
4
  require 'micronaut'
5
5
  require 'rubygems'
6
6
  gem :mocha
7
+
7
8
  require File.expand_path(File.dirname(__FILE__) + "/resources/example_classes")
8
9
 
9
10
  module Micronaut
@@ -209,5 +209,13 @@ describe Micronaut::Behaviour do
209
209
  end
210
210
 
211
211
  end
212
+
213
+ describe "#run" do
214
+
215
+ pending "should run after(:each) even if the example fails"
216
+
217
+ pending "should run after(:each) even if the example raises an Exception"
218
+
219
+ end
212
220
 
213
221
  end
@@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + "/../example_helper")
2
2
 
3
3
  describe Micronaut do
4
4
 
5
- describe "configuration" do
5
+ describe "#configuration" do
6
6
 
7
7
  it "should return an instance of Micronaut::Configuration" do
8
8
  Micronaut.configuration.should be_an_instance_of(Micronaut::Configuration)
@@ -10,7 +10,7 @@ describe Micronaut do
10
10
 
11
11
  end
12
12
 
13
- describe "configure" do
13
+ describe "#configure" do
14
14
 
15
15
  it "should yield the current configuration" do
16
16
  Micronaut.configure do |config|
@@ -20,7 +20,7 @@ describe Micronaut do
20
20
 
21
21
  end
22
22
 
23
- describe "world" do
23
+ describe "#world" do
24
24
 
25
25
  it "should return the Micronaut::World instance the current run is using" do
26
26
  Micronaut.world.should be_instance_of(Micronaut::World)
@@ -55,6 +55,7 @@ module Micronaut
55
55
  def self.#{new_alias}(desc=nil, options={}, &block)
56
56
  updated_options = options.update(:caller => caller[0])
57
57
  updated_options.update(#{extra_options.inspect})
58
+ block = nil if updated_options[:pending] == true || updated_options[:disabled] == true
58
59
  examples << Micronaut::Example.new(self, desc, updated_options, block)
59
60
  end
60
61
  END_RUBY
@@ -63,7 +64,9 @@ module Micronaut
63
64
 
64
65
  alias_example_to :it
65
66
  alias_example_to :focused, :focused => true
66
-
67
+ alias_example_to :disabled, :disabled => true
68
+ alias_example_to :pending, :pending => true
69
+
67
70
  def self.examples
68
71
  @_examples ||= []
69
72
  end
@@ -187,6 +190,8 @@ module Micronaut
187
190
  after_ancestors.each do |ancestor|
188
191
  ancestor.after_eachs.each { |opts, blk| example.instance_eval(&blk) }
189
192
  end
193
+ rescue Exception => e # TODO not sure what to do about this case?
194
+ nil
190
195
  end
191
196
 
192
197
  def self.run(reporter)
@@ -214,11 +219,11 @@ module Micronaut
214
219
  else
215
220
  reporter.example_pending(ex, 'Not yet implemented')
216
221
  end
217
- eval_after_eachs(group)
218
222
  rescue Exception => e
219
223
  reporter.example_failed(ex, e)
220
224
  execution_error ||= e
221
225
  ensure
226
+ eval_after_eachs(group)
222
227
  group._teardown_mocks
223
228
  end
224
229
 
data/lib/micronaut.rb CHANGED
@@ -8,10 +8,6 @@ require 'micronaut/example'
8
8
  require 'micronaut/behaviour'
9
9
  require 'micronaut/kernel_extensions'
10
10
  require 'micronaut/formatters'
11
- begin
12
- require 'log_buddy'
13
- LogBuddy.init
14
- rescue nil; end
15
11
 
16
12
  module Micronaut
17
13
  file = if RUBY_VERSION =~ /^1\.9/ then # bt's expanded, but __FILE__ isn't :(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spicycode-micronaut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.9.1
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Humphries
@@ -9,7 +9,7 @@ autorequire: micronaut
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-26 00:00:00 -08:00
12
+ date: 2008-12-28 00:00:00 -08:00
13
13
  default_executable: micronaut
14
14
  dependencies: []
15
15