summaryrefslogtreecommitdiff
path: root/spec/functional/resource/git_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:11:35 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:13:54 -0700
commit77f8739a4741e2370e40ec39345a92a6ea393a1a (patch)
treebcf3c9a12556ce1fd18a83cd5f68cd24d36a1180 /spec/functional/resource/git_spec.rb
parent90a74a80196725c4198b6042e8485d68c70777ac (diff)
downloadchef-77f8739a4741e2370e40ec39345a92a6ea393a1a.tar.gz
fix Layout/AlignArgumentslcg/new-chefstyle
this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/functional/resource/git_spec.rb')
-rw-r--r--spec/functional/resource/git_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/functional/resource/git_spec.rb b/spec/functional/resource/git_spec.rb
index 67021f6901..e978041038 100644
--- a/spec/functional/resource/git_spec.rb
+++ b/spec/functional/resource/git_spec.rb
@@ -220,7 +220,7 @@ describe Chef::Resource::Git, requires_git: true do
context "when dealing with a repo with a degenerate tag named 'HEAD'" do
before do
shell_out!("git tag -m\"degenerate tag\" HEAD ed181b3419b6f489bedab282348162a110d6d3a1",
- cwd: origin_repo)
+ cwd: origin_repo)
end
let(:basic_git_resource) do
@@ -240,16 +240,16 @@ describe Chef::Resource::Git, requires_git: true do
it "checks out the (master) HEAD revision and ignores the tag" do
basic_git_resource.run_action(:sync)
head_rev = shell_out!("git rev-parse HEAD",
- cwd: deploy_directory,
- returns: [0]).stdout.strip
+ cwd: deploy_directory,
+ returns: [0]).stdout.strip
expect(head_rev).to eq(rev_head)
end
it "checks out the (master) HEAD revision when no revision is specified (ignores tag)" do
git_resource_default_rev.run_action(:sync)
head_rev = shell_out!("git rev-parse HEAD",
- cwd: deploy_directory,
- returns: [0]).stdout.strip
+ cwd: deploy_directory,
+ returns: [0]).stdout.strip
expect(head_rev).to eq(rev_head)
end