summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-10-04 09:42:18 -0700
committerTim Smith <tsmith@chef.io>2018-02-26 12:22:02 -0800
commit60bfd8be787e1d8d85ac214cf7f49eb0e6e5e06d (patch)
tree1b60695272be4f48bc0ef2aef4884dc512f8c753
parent7257e5ef2ada0b4a8fd7ec8f73c2970de874b3e3 (diff)
downloadchef-60bfd8be787e1d8d85ac214cf7f49eb0e6e5e06d.tar.gz
Remove "should" wording
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/provider/apt_repository_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/provider/apt_repository_spec.rb b/spec/unit/provider/apt_repository_spec.rb
index a08c78a49e..ac9ec79640 100644
--- a/spec/unit/provider/apt_repository_spec.rb
+++ b/spec/unit/provider/apt_repository_spec.rb
@@ -83,16 +83,16 @@ C5986B4F1257FFA86632CBA746181433FBB75451
end
describe "#is_key_id?" do
- it "should detect a key" do
+ it "detects a key" do
expect(provider.is_key_id?("A4FF2279")).to be_truthy
end
- it "should detect a key with a hex signifier" do
+ it "detects a key with a hex signifier" do
expect(provider.is_key_id?("0xA4FF2279")).to be_truthy
end
- it "should reject a key with the wrong length" do
+ it "rejects a key with the wrong length" do
expect(provider.is_key_id?("4FF2279")).to be_falsey
end
- it "should reject a key with non-hex characters" do
+ it "rejects a key with non-hex characters" do
expect(provider.is_key_id?("A4KF2279")).to be_falsey
end
end
@@ -102,12 +102,12 @@ C5986B4F1257FFA86632CBA746181433FBB75451
expect(Mixlib::ShellOut).to receive(:new).and_return(apt_key_finger)
end
- it "should run the desired command" do
+ it "runs the desired command" do
expect(apt_key_finger).to receive(:run_command)
provider.extract_fingerprints_from_cmd(apt_key_finger_cmd)
end
- it "should return a list of key fingerprints" do
+ it "returns a list of key fingerprints" do
expect(provider.extract_fingerprints_from_cmd(apt_key_finger_cmd)).to eql(apt_fingerprints)
end
end