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
1010 if stat
1111 current_value = stat . ctime
1212 end
13- current_value
13+ current_value . to_s
1414 end
1515
1616 validate do |val |
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ def retrieve
99 if stat
1010 current_value = stat . mtime
1111 end
12- current_value
12+ current_value . to_s
1313 end
1414
1515 validate do |val |
Original file line number Diff line number Diff line change 1515 @resource [ :audit ] = [ :ctime ]
1616
1717 # 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 )
1919 end
2020
2121 it "should return absent if auditing an absent file" do
Original file line number Diff line number Diff line change 1515 @resource [ :audit ] = [ :mtime ]
1616
1717 # 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 )
1919 end
2020
2121 it "should return absent if auditing an absent file" do
You can’t perform that action at this time.
0 commit comments