spicycode-micronaut 0.1.8.1 → 0.1.8.2
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.markdown +10 -7
- data/Rakefile +1 -1
- data/lib/micronaut/behaviour.rb +4 -4
- metadata +1 -1
data/README.markdown
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Micronaut
|
2
2
|
|
3
3
|
* [Codes - http://github.com/spicycode/micronaut](http://github.com/spicycode/micronaut)
|
4
|
-
* [
|
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
|
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
|
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 "
|
27
|
+
it "this example will run", :focused => true do
|
28
28
|
end
|
29
29
|
|
30
30
|
# equivalent to:
|
31
|
-
focused "
|
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.
|
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
data/lib/micronaut/behaviour.rb
CHANGED
@@ -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)
|