sinsiliux-hornsby 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hornsby.rb +2 -2
- metadata +1 -1
data/lib/hornsby.rb
CHANGED
@@ -26,8 +26,8 @@ class Hornsby
|
|
26
26
|
config.include(HornsbySpecHelper)
|
27
27
|
|
28
28
|
config.before do
|
29
|
-
@@context
|
30
|
-
@@executed_scenarios
|
29
|
+
Hornsby.send(:class_variable_set, '@@context', Hornsby.send(:class_variable_get, '@@global_context').clone)
|
30
|
+
Hornsby.send(:class_variable_set, '@@executed_scenarios', Set.new(Hornsby.send(:class_variable_get, '@@global_executed_scenarios')))
|
31
31
|
Hornsby.copy_ivars(self, true)
|
32
32
|
ActiveRecord::Base.connection.increment_open_transactions
|
33
33
|
ActiveRecord::Base.connection.transaction_joinable = false
|