diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-08-30 18:48:19 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-08-30 18:48:19 -0400 |
commit | 119ac9b87e70d4a5588ff587f0d10ba9e5830686 (patch) | |
tree | 6bd09807c78a3c9dc4d8caad3f39b36220fe0b79 | |
parent | 7d7f0a2954a524049d9faa167d13e2aebf16fc5f (diff) | |
download | gitlab-ci-119ac9b87e70d4a5588ff587f0d10ba9e5830686.tar.gz |
Update outdated `.items` syntax
-rw-r--r-- | spec/models/build_spec.rb | 2 | ||||
-rw-r--r-- | spec/models/commit_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index 8a085c1..04f0f0f 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -175,7 +175,7 @@ describe Build do before { build.trace = text } it { should include(text) } - it { should have_at_least(text.length).items } + it { expect(subject.length).to be >= text.length } end end 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 |