summaryrefslogtreecommitdiff
path: root/spec/models/releases
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2019-01-02 19:56:03 +0900
committerShinya Maeda <shinya@gitlab.com>2019-01-04 22:17:03 +0900
commitdf7ed9eef2048c9a2f79860e00a69f84fa92e10e (patch)
tree58af696ab41bf8a9649f4c60b7663ec11bd496ec /spec/models/releases
parent8a14548fc741e8d115d99e8303e36ed83660494d (diff)
downloadgitlab-ce-df7ed9eef2048c9a2f79860e00a69f84fa92e10e.tar.gz
Add unique constraint to release and url
Fix coding style Improve coding style Decouple UPDATE and DELETE operations of asset links Rename links_attributes to assets:links Rename exposed param and updated spec
Diffstat (limited to 'spec/models/releases')
-rw-r--r--spec/models/releases/link_spec.rb4
-rw-r--r--spec/models/releases/source_spec.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/releases/link_spec.rb b/spec/models/releases/link_spec.rb
index 0f9ac7ec76a..116833d5ed8 100644
--- a/spec/models/releases/link_spec.rb
+++ b/spec/models/releases/link_spec.rb
@@ -1,6 +1,6 @@
-require 'rails_helper'
+require 'spec_helper'
-RSpec.describe Releases::Link do
+describe Releases::Link do
let(:release) { create(:release, project: project) }
let(:project) { create(:project) }
diff --git a/spec/models/releases/source_spec.rb b/spec/models/releases/source_spec.rb
index 526ee8eafc9..2c34225d45a 100644
--- a/spec/models/releases/source_spec.rb
+++ b/spec/models/releases/source_spec.rb
@@ -1,6 +1,6 @@
-require 'rails_helper'
+require 'spec_helper'
-RSpec.describe Releases::Source do
+describe Releases::Source do
set(:project) { create(:project, :repository, name: 'finance-cal') }
let(:tag_name) { 'v1.0' }