summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-08-30 18:48:19 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-08-30 18:48:19 -0400
commit119ac9b87e70d4a5588ff587f0d10ba9e5830686 (patch)
tree6bd09807c78a3c9dc4d8caad3f39b36220fe0b79 /spec/models/commit_spec.rb
parent7d7f0a2954a524049d9faa167d13e2aebf16fc5f (diff)
downloadgitlab-ci-119ac9b87e70d4a5588ff587f0d10ba9e5830686.tar.gz
Update outdated `.items` syntax
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r--spec/models/commit_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index fb3f218..2fe9378 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -123,14 +123,14 @@ describe Commit do
describe '#short_before_sha' do
subject { commit.short_before_sha }
- it { should have(8).items }
+ it { expect(subject.length).to eq 8 }
it { commit.before_sha.should start_with(subject) }
end
describe '#short_sha' do
subject { commit.short_sha }
- it { should have(8).items }
+ it { expect(subject.length).to eq 8 }
it { commit.sha.should start_with(subject) }
end