RubyGems
npm
Organizations
Log in
Sign up
RubyGems
anytime
Versions diffs
0.0.4 → 0.0.5
anytime 0.0.4 → 0.0.5
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/anytime.rb
+4
-0
metadata
+1
-1
data/lib/anytime.rb
CHANGED
Viewed
@@ -15,6 +15,10 @@ module Anytime
15
15
DateTime.unstub(:now)
16
16
end
17
17
18
+
def self.is_frozen?
19
+
Mocha::Mockery.instance.stubba.stubba_methods.map(&:to_s).eql? ['DateTime.now', 'Time.now', 'Date.today']
20
+
end
21
+
18
22
def self.setup
19
23
yield self
20
24
end
metadata
CHANGED
Viewed
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: anytime
3
3
version: !ruby/object:Gem::Version
4
-
version: 0.0.
4
4
+
version: 0.0.
5
5
5
prerelease:
6
6
platform: ruby
7
7
authors: