Skip to content

Commit

Permalink
Minor readability refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbaudino committed Jun 9, 2017
1 parent ae6ee3e commit 05446a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/helpers/sync_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
end

diffable
description { "synchronize #{diff_target} with #{diff_source}." }
failure_message { "Expected #{diff_target} to match #{diff_source}." }
failure_message_when_negated { "Expected #{diff_target} to be different than #{diff_source}." }

def diff_source
"`#{host_dir}` filetree on host"
end

def diff_target
"`#{container_dir}` filetree in container `#{container_name}`"
end
description { "synchronize #{diff_target} with #{diff_source}." }
failure_message { "Expected #{diff_target} to match #{diff_source}." }
failure_message_when_negated { "Expected #{diff_target} to be different than #{diff_source}." }
end

0 comments on commit 05446a0

Please sign in to comment.