summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-05 11:03:02 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-05 11:03:02 +0100
commit1c4d1c3bd69a6f9ec43cce4ab59de4ba47f73229 (patch)
treed549337514c34ab2e92890d37ac12c22aca395c8 /spec
parent33b8f002636ad6171637108b53732c74d90b14ad (diff)
downloadgitlab-ce-1c4d1c3bd69a6f9ec43cce4ab59de4ba47f73229.tar.gz
Add release model
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/factories/releases.rb9
-rw-r--r--spec/models/release_spec.rb5
2 files changed, 14 insertions, 0 deletions
diff --git a/spec/factories/releases.rb b/spec/factories/releases.rb
new file mode 100644
index 00000000000..067d8138e41
--- /dev/null
+++ b/spec/factories/releases.rb
@@ -0,0 +1,9 @@
+# Read about factories at https://github.com/thoughtbot/factory_girl
+
+FactoryGirl.define do
+ factory :release do
+ tag "MyString"
+ description "MyText"
+ project_id 1
+ end
+end
diff --git a/spec/models/release_spec.rb b/spec/models/release_spec.rb
new file mode 100644
index 00000000000..e533734ba0d
--- /dev/null
+++ b/spec/models/release_spec.rb
@@ -0,0 +1,5 @@
+require 'rails_helper'
+
+RSpec.describe Release, type: :model do
+ pending "add some examples to (or delete) #{__FILE__}"
+end