spicycode-micronaut 0.1.8.1 → 0.1.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  # Micronaut
2
2
 
3
3
  * [Codes - http://github.com/spicycode/micronaut](http://github.com/spicycode/micronaut)
4
- * [Specs - http://runcoderun.com/spicycode/micronaut](http://runcoderun.com/spicycode/micronaut)
4
+ * [Examples - http://runcoderun.com/spicycode/micronaut](http://runcoderun.com/spicycode/micronaut)
5
5
  * [Rails - http://github.com/spicycode/micronaut-rails](http://github.com/spicycode/micronaut-rails)
6
6
 
7
7
  ## DESCRIPTION:
@@ -17,18 +17,21 @@ Micronaut is a light-weight BDD test framework.
17
17
  * Each example has its own metadata, and you can add filters or modules to run/disable/enhance examples based on that metadata at run time
18
18
  * A Real-world example of the power the metadata gives you:
19
19
 
20
- * "Focused specs". Never drop out of Autotest again - just focus on the spec(s) and ignore the rest:
20
+ * "Focused examples". Never drop out of Autotest again - just focus on the example(s) and ignore the rest:
21
21
 
22
- Micronaut.configure do |c| # in your spec_helper
22
+ Micronaut.configure do |c| # in your example_helper
23
23
  c.filter_run :focused => true
24
24
  end
25
25
 
26
26
  describe Foo do
27
- it "autotest will only run this spec, even if your whole suite loads", :focused => true do
27
+ it "this example will run", :focused => true do
28
28
  end
29
29
 
30
30
  # equivalent to:
31
- focused "is an example_alias to pass in the :focused => true metadata" do
31
+ focused "so will this one (this is an alias for :focused => true)" do
32
+ end
33
+
34
+ it "this example will not run, until the focused ones are removed" do
32
35
  end
33
36
  end
34
37
 
@@ -38,10 +41,10 @@ Micronaut is a light-weight BDD test framework.
38
41
 
39
42
  ## REQUIREMENTS:
40
43
 
41
- + Ruby 1.8.5+
44
+ + Ruby 1.8.6+
42
45
 
43
46
  ## CREDITS:
44
47
 
45
48
  * Mini/Unit for the great ideas and runner
46
49
  * RSpec for the great ideas, matchers, expectations and formatter ideas
47
- * Matchers are licensed under the MIT license, per RSpec (see RSPEC-LICENSE)
50
+ * Matchers are licensed under the MIT license, per RSpec (see RSPEC-LICENSE)
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.8.1"
6
+ GEM_VERSION = "0.1.8.2"
7
7
  AUTHOR = "Chad Humphries"
8
8
  EMAIL = "chad@spicycode.com"
9
9
  HOMEPAGE = "http://github.com/spicycode/micronaut"
@@ -155,19 +155,19 @@ module Micronaut
155
155
  end
156
156
 
157
157
  def self.eval_before_alls(example)
158
- Micronaut.configuration.find_before_or_after(:before, :all, self).each { |blk| example.instance_eval(&blk) }
159
-
160
158
  before_ancestors.each do |ancestor|
161
159
  ancestor.before_alls.each { |opts, blk| example.instance_eval(&blk) }
162
160
  end
161
+
162
+ Micronaut.configuration.find_before_or_after(:before, :all, self).each { |blk| example.instance_eval(&blk) }
163
163
  end
164
164
 
165
165
  def self.eval_before_eachs(example)
166
- Micronaut.configuration.find_before_or_after(:before, :each, self).each { |blk| example.instance_eval(&blk) }
167
-
168
166
  before_ancestors.each do |ancestor|
169
167
  ancestor.before_eachs.each { |opts, blk| example.instance_eval(&blk) }
170
168
  end
169
+
170
+ Micronaut.configuration.find_before_or_after(:before, :each, self).each { |blk| example.instance_eval(&blk) }
171
171
  end
172
172
 
173
173
  def self.eval_after_alls(example)
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.8.1
4
+ version: 0.1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Humphries