Skip to content

Commit

Permalink
Fix /tmp/file_edit_with_content_change_updates_timestamp recipe as /t…
Browse files Browse the repository at this point in the history
…mp/file_edit_sample using gsub!.
  • Loading branch information
nishidayuya committed May 9, 2016
1 parent 25c6e74 commit 8a1cf21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/integration/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,12 @@

###

execute "touch -d 2016-05-02T01:23:45 /tmp/file_edit_with_content_change_updates_timestamp"
execute "f=/tmp/file_edit_with_content_change_updates_timestamp && echo 'Hello, world' > $f && touch -d 2016-05-02T01:23:45 $f"

file "/tmp/file_edit_with_content_change_updates_timestamp" do
action :edit
block do |content|
content[0 .. -1] = "Hello, world"
content.gsub!('world', 'Itamae')
end
end

Expand Down

0 comments on commit 8a1cf21

Please sign in to comment.