sus 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sus/have_duration.rb +2 -24
- data/lib/sus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c425b82649b8f50e5976153a010975266ed1484f41507cf81b3c1353223e489
|
4
|
+
data.tar.gz: a67daffd36d952add4e867f2f8abb8f35a8b77b5c15daf7110bf022078142db0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bcda2c3ad36727e6a4654216e7d82b1311c2194978f463b16798030dfec2bcdadf8daf3df48a00705d4831c1e1d8b24fae62e48c5d452027a13b0f66a9f6a58
|
7
|
+
data.tar.gz: 31dacb8749146bcfb29a8ccd4a041e515dc03ecebc87b1cd9c02a1a09d5cd75b00f4b80396d1665ccdc10bfff047bc75e69bc0464be84d95ac1cfb9e33d5bcc6
|
data/lib/sus/have_duration.rb
CHANGED
@@ -18,24 +18,6 @@ module Sus
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
class << self
|
22
|
-
def < duration
|
23
|
-
new(Be < duration)
|
24
|
-
end
|
25
|
-
|
26
|
-
def <= duration
|
27
|
-
new(Be <= duration)
|
28
|
-
end
|
29
|
-
|
30
|
-
def > duration
|
31
|
-
new(Be > duration)
|
32
|
-
end
|
33
|
-
|
34
|
-
def >= duration
|
35
|
-
new(Be >= duration)
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
21
|
private
|
40
22
|
|
41
23
|
def measure(subject)
|
@@ -52,12 +34,8 @@ module Sus
|
|
52
34
|
end
|
53
35
|
|
54
36
|
class Base
|
55
|
-
def have_duration(
|
56
|
-
|
57
|
-
HaveDuration.new(be_within(*arguments))
|
58
|
-
else
|
59
|
-
HaveDuration
|
60
|
-
end
|
37
|
+
def have_duration(...)
|
38
|
+
HaveDuration.new(...)
|
61
39
|
end
|
62
40
|
end
|
63
41
|
end
|
data/lib/sus/version.rb
CHANGED