summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-05-28 14:29:21 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-03 16:35:57 +0300
commit17a8fe8a9011cfde0a9dbe70d726c769819a9dfd (patch)
tree10b048c8c2dab844f82779a2a6efdaf3811bb9f0 /spec/models
parent54bd76399ddf5fb925df01d9f86ed020c475b3ba (diff)
downloadgitlab-ci-17a8fe8a9011cfde0a9dbe70d726c769819a9dfd.tar.gz
proof of concept yml configuration
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/commit_spec.rb2
-rw-r--r--spec/models/project_services/slack_message_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index 75d5610..c4056e3 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -135,7 +135,7 @@ describe Commit do
FactoryGirl.create :job, job_type: :deploy, project: project
project.reload
- commit.create_deploy_builds(commit.ref)
+ commit.create_deploy_builds
commit.builds.reload
commit.builds.size.should == 1
diff --git a/spec/models/project_services/slack_message_spec.rb b/spec/models/project_services/slack_message_spec.rb
index 1fa2e31..83a6352 100644
--- a/spec/models/project_services/slack_message_spec.rb
+++ b/spec/models/project_services/slack_message_spec.rb
@@ -72,7 +72,7 @@ describe SlackMessage do
subject.fallback.should include("\##{commit.id}")
subject.fallback.should include('failed')
subject.attachments.first[:fields].size.should == 1
- subject.attachments.first[:fields].first[:title].should == build2.job_name
+ subject.attachments.first[:fields].first[:title].should == build2.name
subject.attachments.first[:fields].first[:value].should include("\##{build2.id}")
end
end