File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def retrieve
10
10
if stat
11
11
current_value = stat . ctime
12
12
end
13
- current_value
13
+ current_value . to_s
14
14
end
15
15
16
16
validate do |val |
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def retrieve
9
9
if stat
10
10
current_value = stat . mtime
11
11
end
12
- current_value
12
+ current_value . to_s
13
13
end
14
14
15
15
validate do |val |
Original file line number Diff line number Diff line change 15
15
@resource [ :audit ] = [ :ctime ]
16
16
17
17
# this .to_resource audit behavior is magical :-(
18
- expect ( @resource . to_resource [ :ctime ] ) . to eq ( Puppet ::FileSystem . stat ( @filename ) . ctime )
18
+ expect ( @resource . to_resource [ :ctime ] ) . to eq ( Puppet ::FileSystem . stat ( @filename ) . ctime . to_s )
19
19
end
20
20
21
21
it "should return absent if auditing an absent file" do
Original file line number Diff line number Diff line change 15
15
@resource [ :audit ] = [ :mtime ]
16
16
17
17
# this .to_resource audit behavior is magical :-(
18
- expect ( @resource . to_resource [ :mtime ] ) . to eq ( Puppet ::FileSystem . stat ( @filename ) . mtime )
18
+ expect ( @resource . to_resource [ :mtime ] ) . to eq ( Puppet ::FileSystem . stat ( @filename ) . mtime . to_s )
19
19
end
20
20
21
21
it "should return absent if auditing an absent file" do
You can’t perform that action at this time.
0 commit comments