|
5 | 5 | title 'should be installed' |
6 | 6 | desc 'Ensure golang tarball archive was extracted correctly' |
7 | 7 |
|
8 | | - describe file('/usr/local/go1.10.1.linux-amd64/go') do |
| 8 | + describe file('/usr/local/go1.14.2.linux-amd64/go') do |
9 | 9 | it { should be_directory } |
10 | 10 | it { should be_owned_by 'root' } |
11 | 11 | it { should be_grouped_into 'root' } |
12 | 12 | its('mode') { should cmp '0755' } |
13 | 13 | end |
14 | | - |
15 | | - require 'digest' |
16 | | - binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/go').content |
17 | | - Digest::SHA256.hexdigest(binary) |
18 | | - describe file('/usr/local/go1.10.1.linux-amd64/go/bin/go') do |
19 | | - # rubocop:disable LineLength |
20 | | - its('sha256sum') { should eq '11438a2d41e257519e8c0ad098c287f9f73f1b8382a012a0c10e1dee5fb1e8ae' } |
21 | | - # rubocop:enable LineLength |
22 | | - end |
23 | | - |
24 | | - binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/godoc').content |
25 | | - Digest::SHA256.hexdigest(binary) |
26 | | - describe file('/usr/local/go1.10.1.linux-amd64/go/bin/godoc') do |
27 | | - # rubocop:disable LineLength |
28 | | - its('sha256sum') { should eq '4076bb73349f253c04e5ef214934938760eefb26529f22d2e6fdbd61b99bb4b5' } |
29 | | - # rubocop:enable LineLength |
30 | | - end |
31 | | - |
32 | | - binary = file('/usr/local/go1.10.1.linux-amd64/go/bin/gofmt').content |
33 | | - Digest::SHA256.hexdigest(binary) |
34 | | - describe file('/usr/local/go1.10.1.linux-amd64/go/bin/gofmt') do |
35 | | - # rubocop:disable LineLength |
36 | | - its('sha256sum') { should eq '5673f5914f195331322b20aee026f1882dac7c92b61c41bae23a04fb803b3e2c' } |
37 | | - # rubocop:enable LineLength |
38 | | - end |
39 | 14 | end |
0 commit comments