summaryrefslogtreecommitdiff
path: root/spec/services/create_trigger_request_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/create_trigger_request_service_spec.rb')
-rw-r--r--spec/services/create_trigger_request_service_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/services/create_trigger_request_service_spec.rb b/spec/services/create_trigger_request_service_spec.rb
index cb9a1e6..0634753 100644
--- a/spec/services/create_trigger_request_service_spec.rb
+++ b/spec/services/create_trigger_request_service_spec.rb
@@ -13,14 +13,14 @@ describe CreateTriggerRequestService do
@commit = FactoryGirl.create :commit, project: project
end
- it { subject.should be_kind_of(TriggerRequest) }
- it { subject.commit.should eq @commit }
+ it { expect(subject).to be_kind_of(TriggerRequest) }
+ it { expect(subject.commit).to eq @commit }
end
context 'no commit for ref' do
subject { service.execute(project, trigger, 'other-branch') }
- it { subject.should be_nil }
+ it { expect(subject).to be_nil }
end
context 'no builds created' do
@@ -30,7 +30,7 @@ describe CreateTriggerRequestService do
FactoryGirl.create :commit_without_jobs, project: project
end
- it { subject.should be_nil }
+ it { expect(subject).to be_nil }
end
context 'for multiple commits' do
@@ -43,9 +43,9 @@ describe CreateTriggerRequestService do
end
context 'retries latest one' do
- it { subject.should be_kind_of(TriggerRequest) }
- it { subject.should be_persisted }
- it { subject.commit.should eq @commit2 }
+ it { expect(subject).to be_kind_of(TriggerRequest) }
+ it { expect(subject).to be_persisted }
+ it { expect(subject.commit).to eq @commit2 }
end
end
end