lawrencepit-machinist 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sham.rb +2 -2
- metadata +1 -1
data/lib/sham.rb
CHANGED
@@ -24,7 +24,7 @@ class Sham
|
|
24
24
|
@@shams = {}
|
25
25
|
end
|
26
26
|
|
27
|
-
def self.reset(scope = :
|
27
|
+
def self.reset(scope = :before_all)
|
28
28
|
@@shams.values.each { |sham| sham.reset(scope) }
|
29
29
|
end
|
30
30
|
|
@@ -41,7 +41,7 @@ class Sham
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def reset(scope)
|
44
|
-
if scope == :
|
44
|
+
if scope == :before_all
|
45
45
|
@offset, @before_offset = 0, nil
|
46
46
|
elsif @before_offset
|
47
47
|
@offset = @before_offset
|