Permalink
Browse files

Fix to before_ivar handling - important for let!

  • Loading branch information...
1 parent 4486fc6 commit 5f1ca1860422c25f2c170020569ecc3ede3a14bf @nyarly nyarly committed Aug 30, 2011
Showing with 8 additions and 3 deletions.
  1. +2 −1 .rspec
  2. +1 −1 Gemfile.lock
  3. +4 −0 lib/rspec-steps/stepwise.rb
  4. +1 −1 rspec-steps.gemspec
View
3 .rspec
@@ -1,5 +1,6 @@
--format documentation
+--out last_run
-I /home/judson/ruby/gems/rspec-steps/spec_help/interpose
-I /home/judson/ruby/gems/rspec-steps/lib
-I /home/judson/ruby/gems/rspec-steps/spec_help
---require spec_helper
+--require spec_helper
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- rspec-steps (0.0.3)
+ rspec-steps (0.0.4)
rspec (>= 2.6)
GEM
@@ -41,6 +41,7 @@ def eval_before_alls(example_group_instance)
example_group_instance.example = whole_list_example
world.run_hook_filtered(:before, :each, self, example_group_instance, whole_list_example)
ancestors.reverse.each { |ancestor| ancestor.run_hook(:before, :each, example_group_instance) }
+ store_before_all_ivars(example_group_instance)
end
def eval_around_eachs(example)
@@ -122,6 +123,9 @@ def with_indelible_ivars
result = yield
@ivars_indelible = old_value
result
+ rescue Object
+ @ivars_indelible = old_value
+ raise
end
def instance_variable_set(name, value)
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = "rspec-steps"
- spec.version = "0.0.5"
+ spec.version = "0.0.6"
author_list = {
"Judson Lester" => "judson@lrdesign.com",
"Evan Dorn" => "evan@lrdesign.com"

0 comments on commit 5f1ca18

Please sign in to comment.