summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-12 13:16:54 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-12 13:59:37 +0300
commitdc28749419635cf20b1a62a839186adf0640697c (patch)
tree702060acfb8a0953728f501bc4f12dce16f8a6d7 /spec/models
parente744d06515eb4195115d451b744009aa4dd24d1f (diff)
downloadgitlab-ci-dc28749419635cf20b1a62a839186adf0640697c.tar.gz
New syntax of gitlab-ci.yml
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/commit_spec.rb2
-rw-r--r--spec/models/project_services/hip_chat_message_spec.rb2
-rw-r--r--spec/models/project_services/slack_message_spec.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index 1658ae6..8c0073e 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -138,7 +138,7 @@ describe Commit do
commit.create_deploy_builds
commit.builds.reload
- commit.builds.size.should == 1
+ commit.builds.size.should == 2
end
end
diff --git a/spec/models/project_services/hip_chat_message_spec.rb b/spec/models/project_services/hip_chat_message_spec.rb
index d4bfb31..5fa5549 100644
--- a/spec/models/project_services/hip_chat_message_spec.rb
+++ b/spec/models/project_services/hip_chat_message_spec.rb
@@ -8,7 +8,7 @@ describe HipChatMessage do
context "One build" do
let(:commit) do
commit = FactoryGirl.create(:commit, project: project)
- commit.push_data[:ci_yaml_file] = YAML.dump({jobs: ["ls"]})
+ commit.push_data[:ci_yaml_file] = YAML.dump({rspec: { test: 'pwd' }})
commit.save
commit
end
diff --git a/spec/models/project_services/slack_message_spec.rb b/spec/models/project_services/slack_message_spec.rb
index 03c0cd3..857935d 100644
--- a/spec/models/project_services/slack_message_spec.rb
+++ b/spec/models/project_services/slack_message_spec.rb
@@ -8,7 +8,7 @@ describe SlackMessage do
context "One build" do
let(:commit) do
commit = FactoryGirl.create(:commit, project: project)
- commit.push_data[:ci_yaml_file] = YAML.dump({jobs: ["ls"]})
+ commit.push_data[:ci_yaml_file] = YAML.dump({rspec: { test: "ls" }})
commit.save
commit
end