diff options
author | Thom May <thom@chef.io> | 2016-06-08 11:25:56 +0100 |
---|---|---|
committer | Thom May <thom@may.lt> | 2016-06-08 11:25:56 +0100 |
commit | 8cd4ab1ad2b48cf92b45cd980279f7d5b836892f (patch) | |
tree | b1226b3f5f56a05ed34bc7d55422be18106b3064 /spec/mixlib/authentication/digester_spec.rb | |
parent | 2dffcfb7ce778efb60834c66aa1e0cd4ec500901 (diff) | |
download | mixlib-authentication-8cd4ab1ad2b48cf92b45cd980279f7d5b836892f.tar.gz |
Chefstyle and modernisev1.4.1
Signed-off-by: Thom May <thom@may.lt>
Diffstat (limited to 'spec/mixlib/authentication/digester_spec.rb')
-rw-r--r-- | spec/mixlib/authentication/digester_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/mixlib/authentication/digester_spec.rb b/spec/mixlib/authentication/digester_spec.rb index 747227d..fd3eb41 100644 --- a/spec/mixlib/authentication/digester_spec.rb +++ b/spec/mixlib/authentication/digester_spec.rb @@ -1,21 +1,21 @@ -require 'mixlib/authentication/digester' +require "mixlib/authentication/digester" describe Mixlib::Authentication::Digester do - context 'backcompat' do + context "backcompat" do # The digester API should really have been private, # however oc-chef-pedant uses it. - let(:test_string) { 'hello' } - let(:test_string_checksum) { 'qvTGHdzF6KLavt4PO0gs2a6pQ00=' } + let(:test_string) { "hello" } + let(:test_string_checksum) { "qvTGHdzF6KLavt4PO0gs2a6pQ00=" } describe '#hash_file' do - it 'should default to use SHA1' do + it "should default to use SHA1" do expect(described_class.hash_file(StringIO.new(test_string))).to( eq(test_string_checksum)) end end describe '#hash_string' do - it 'should default to use SHA1' do + it "should default to use SHA1" do expect(described_class.hash_string(test_string)).to( eq(test_string_checksum)) end |