summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/push_data_builder_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/push_data_builder_spec.rb')
-rw-r--r--spec/lib/gitlab/push_data_builder_spec.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/spec/lib/gitlab/push_data_builder_spec.rb b/spec/lib/gitlab/push_data_builder_spec.rb
index 691fd133637..da25d45f1ff 100644
--- a/spec/lib/gitlab/push_data_builder_spec.rb
+++ b/spec/lib/gitlab/push_data_builder_spec.rb
@@ -8,12 +8,12 @@ describe 'Gitlab::PushDataBuilder' do
describe :build_sample do
let(:data) { Gitlab::PushDataBuilder.build_sample(project, user) }
- it { data.should be_a(Hash) }
- it { data[:before].should == '6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9' }
- it { data[:after].should == '5937ac0a7beb003549fc5fd26fc247adbce4a52e' }
- it { data[:ref].should == 'refs/heads/master' }
- it { data[:commits].size.should == 3 }
- it { data[:total_commits_count].should == 3 }
+ it { expect(data).to be_a(Hash) }
+ it { expect(data[:before]).to eq('6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9') }
+ it { expect(data[:after]).to eq('5937ac0a7beb003549fc5fd26fc247adbce4a52e') }
+ it { expect(data[:ref]).to eq('refs/heads/master') }
+ it { expect(data[:commits].size).to eq(3) }
+ it { expect(data[:total_commits_count]).to eq(3) }
end
describe :build do
@@ -25,12 +25,12 @@ describe 'Gitlab::PushDataBuilder' do
'refs/tags/v1.1.0')
end
- it { data.should be_a(Hash) }
- it { data[:before].should == Gitlab::Git::BLANK_SHA }
- it { data[:checkout_sha].should == '5937ac0a7beb003549fc5fd26fc247adbce4a52e' }
- it { data[:after].should == '8a2a6eb295bb170b34c24c76c49ed0e9b2eaf34b' }
- it { data[:ref].should == 'refs/tags/v1.1.0' }
- it { data[:commits].should be_empty }
- it { data[:total_commits_count].should be_zero }
+ it { expect(data).to be_a(Hash) }
+ it { expect(data[:before]).to eq(Gitlab::Git::BLANK_SHA) }
+ it { expect(data[:checkout_sha]).to eq('5937ac0a7beb003549fc5fd26fc247adbce4a52e') }
+ it { expect(data[:after]).to eq('8a2a6eb295bb170b34c24c76c49ed0e9b2eaf34b') }
+ it { expect(data[:ref]).to eq('refs/tags/v1.1.0') }
+ it { expect(data[:commits]).to be_empty }
+ it { expect(data[:total_commits_count]).to be_zero }
end
end