summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2015-07-06 11:31:52 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2015-07-06 11:31:52 +0000
commit574e71ce3eda70add20b27ccd935e07186a5d7b0 (patch)
tree3df4fa18482559d69db0c63587f17bbce1c8e59e /spec/models
parentb27f990de8a1b53974eb9aa0bd6bdde18f93d6db (diff)
parentaaa08b5f48488fc7b6436e04f26a5680d9aebb09 (diff)
downloadgitlab-ci-574e71ce3eda70add20b27ccd935e07186a5d7b0.tar.gz
Merge branch 'docker-image' into 'master'
Added support for image and services in YAML - [x] Prepare changes for GitLab CI - [x] Prepare documentation (70% done): https://gitlab.com/gitlab-org/gitlab-ci/merge_requests/178 - [x] Prepare GitLab Runner - changes are pushed to bleeding edge /cc @vsizov See merge request !181
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/build_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index d996689..b7e9672 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -14,6 +14,7 @@
# commit_id :integer
# coverage :float
# commands :text
+# options :text
#
require 'spec_helper'
@@ -167,6 +168,20 @@ describe Build do
end
end
+ describe :options do
+ let(:options) {
+ {
+ :image => "ruby:2.1",
+ :services => [
+ "postgres"
+ ]
+ }
+ }
+
+ subject { build.options }
+ it { should eq(options) }
+ end
+
describe :ref do
subject { build.ref }