summaryrefslogtreecommitdiff
path: root/spec/unit/provider/git_spec.rb
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-11-04 08:17:39 -0800
committertyler-ball <tyleraball@gmail.com>2014-11-04 08:17:39 -0800
commitd6687d195091ab67a00ac5d61ededbb7958f32ad (patch)
tree2765b1c52a021033e44c6ba38287d7fb77704914 /spec/unit/provider/git_spec.rb
parente5c35f74b8451139605fc5c986eb51405d53d4c2 (diff)
parent4fa0ea6f9b942d407b83712ec53e19447ddfa39b (diff)
downloadchef-tball/audit-rspec-3.tar.gz
Merging mcquin/rspec-3 to this branchtball/audit-rspec-3
Diffstat (limited to 'spec/unit/provider/git_spec.rb')
-rw-r--r--spec/unit/provider/git_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/provider/git_spec.rb b/spec/unit/provider/git_spec.rb
index bfbf531389..1e282c098d 100644
--- a/spec/unit/provider/git_spec.rb
+++ b/spec/unit/provider/git_spec.rb
@@ -621,21 +621,21 @@ SHAS
describe "when check remote command returns with status 2" do
it "returns true" do
allow(@command_response).to receive(:exitstatus) { 2 }
- expect(@provider.multiple_remotes?(@command_response)).to be_true
+ expect(@provider.multiple_remotes?(@command_response)).to be_truthy
end
end
describe "when check remote command returns with status 0" do
it "returns false" do
allow(@command_response).to receive(:exitstatus) { 0 }
- expect(@provider.multiple_remotes?(@command_response)).to be_false
+ expect(@provider.multiple_remotes?(@command_response)).to be_falsey
end
end
describe "when check remote command returns with status 0" do
it "returns false" do
allow(@command_response).to receive(:exitstatus) { 1 }
- expect(@provider.multiple_remotes?(@command_response)).to be_false
+ expect(@provider.multiple_remotes?(@command_response)).to be_falsey
end
end
end
@@ -649,7 +649,7 @@ SHAS
it "returns true" do
allow(@command_response).to receive(:exitstatus) { 0 }
allow(@command_response).to receive(:stdout) { @resource.repository }
- expect(@provider.remote_matches?(@resource.repository, @command_response)).to be_true
+ expect(@provider.remote_matches?(@resource.repository, @command_response)).to be_truthy
end
end
@@ -657,7 +657,7 @@ SHAS
it "returns false" do
allow(@command_response).to receive(:exitstatus) { 0 }
allow(@command_response).to receive(:stdout) { @resource.repository + "test" }
- expect(@provider.remote_matches?(@resource.repository, @command_response)).to be_false
+ expect(@provider.remote_matches?(@resource.repository, @command_response)).to be_falsey
end
end
end