test/unit/git_repo_tests.rb in ggem-1.9.5 vs test/unit/git_repo_tests.rb in ggem-1.10.0

- old
+ new

@@ -45,11 +45,11 @@ class RunInitCmdTests < CmdTests desc "`run_init_cmd`" setup do @exp_cmds_run = [ "cd #{@repo_path} && git init", - "cd #{@repo_path} && git add --all && git add -f *.keep" + "cd #{@repo_path} && git add --all && git add -f *.keep", ] end should "run a system cmd to init the repo and add any existing files" do assert_exp_cmds_run{ subject.run_init_cmd } @@ -62,11 +62,11 @@ class RunValidateCleanCmdTests < CmdTests desc "`run_validate_clean_cmd`" setup do @exp_cmds_run = [ - "cd #{@repo_path} && git diff --exit-code" + "cd #{@repo_path} && git diff --exit-code", ] end should "run a system cmd to see if there are any diffs" do assert_exp_cmds_run{ subject.run_validate_clean_cmd } @@ -79,11 +79,11 @@ class RunValidateCommittedCmdTests < CmdTests desc "`run_validate_committed_cmd`" setup do @exp_cmds_run = [ - "cd #{@repo_path} && git diff-index --quiet --cached HEAD" + "cd #{@repo_path} && git diff-index --quiet --cached HEAD", ] end should "run a system cmd to see if there is anything still uncommitted" do assert_exp_cmds_run{ subject.run_validate_committed_cmd } @@ -97,11 +97,11 @@ class RunPushCmdTests < CmdTests desc "`run_push_cmd`" setup do @exp_cmds_run = [ "cd #{@repo_path} && git push", - "cd #{@repo_path} && git push --tags" + "cd #{@repo_path} && git push --tags", ] end should "run a system cmds to push commits/tags" do assert_exp_cmds_run{ subject.run_push_cmd } @@ -117,29 +117,31 @@ setup do @version = Factory.string @tag = Factory.string @exp_cmds_run = [ - "cd #{@repo_path} && git tag -a -m \"Version #{@version}\" #{@tag}" + "cd #{@repo_path} && git tag -a -m \"Version #{@version}\" #{@tag}", ] end should "run a system cmd to add a tag for a given version/tag string" do assert_exp_cmds_run{ subject.run_add_version_tag_cmd(@version, @tag) } end should "complain if any system cmds are not successful" do - assert_exp_cmds_error(CmdError){ subject.run_add_version_tag_cmd(@version, @tag) } + assert_exp_cmds_error(CmdError) do + subject.run_add_version_tag_cmd(@version, @tag) + end end end class RunRmTagCmdTests < CmdTests desc "`run_rm_tag_cmd`" setup do @tag = Factory.string @exp_cmds_run = [ - "cd #{@repo_path} && git tag -d #{@tag}" + "cd #{@repo_path} && git tag -d #{@tag}", ] end should "run a system cmd to remove a tag with the given tag string" do assert_exp_cmds_run{ subject.run_rm_tag_cmd(@tag) }