summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-09 14:15:29 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-04-09 14:15:29 +0000
commitfa1d7aaa99d13278a83d955804077811bb65c553 (patch)
tree894a177410773db95540d36473c558f2bbf15d26 /spec
parentc078bd2609771332b97828386ed2662ccd024c53 (diff)
parent4869f756d3e63beb1e4c92058dbdfbd856ecd044 (diff)
downloadgitlab-ci-fa1d7aaa99d13278a83d955804077811bb65c553.tar.gz
Merge branch 'protected_attributes' into 'master'
Remove protected attributes https://dev.gitlab.org/gitlab/gitlab-ci/issues/165 See merge request !60
Diffstat (limited to 'spec')
-rw-r--r--spec/models/build_spec.rb7
-rw-r--r--spec/models/commit_spec.rb8
-rw-r--r--spec/models/web_hook_spec.rb4
3 files changed, 0 insertions, 19 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb
index f8db78d..de0e0b9 100644
--- a/spec/models/build_spec.rb
+++ b/spec/models/build_spec.rb
@@ -38,13 +38,6 @@ describe Build do
it { should respond_to :pending? }
it { should respond_to :trace_html }
- it { should allow_mass_assignment_of(:commit_id) }
- it { should allow_mass_assignment_of(:status) }
- it { should allow_mass_assignment_of(:started_at) }
- it { should allow_mass_assignment_of(:finished_at) }
- it { should allow_mass_assignment_of(:trace) }
- it { should allow_mass_assignment_of(:runner_id) }
-
describe :first_pending do
let(:first) { FactoryGirl.create :build, commit: commit, status: 'pending', created_at: Date.yesterday }
let(:second) { FactoryGirl.create :build, commit: commit, status: 'pending' }
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb
index d4a516b..03bc1e8 100644
--- a/spec/models/commit_spec.rb
+++ b/spec/models/commit_spec.rb
@@ -30,14 +30,6 @@ describe Commit do
it { should respond_to :git_author_email }
it { should respond_to :short_sha }
- it { should allow_mass_assignment_of(:project_id) }
- it { should allow_mass_assignment_of(:ref) }
- it { should allow_mass_assignment_of(:sha) }
- it { should allow_mass_assignment_of(:before_sha) }
- it { should allow_mass_assignment_of(:push_data) }
- it { should allow_mass_assignment_of(:status) }
- it { should allow_mass_assignment_of(:project_name) }
-
describe :last_build do
subject { commit.last_build }
before do
diff --git a/spec/models/web_hook_spec.rb b/spec/models/web_hook_spec.rb
index 2c3c1c3..0f0f175 100644
--- a/spec/models/web_hook_spec.rb
+++ b/spec/models/web_hook_spec.rb
@@ -16,10 +16,6 @@ describe WebHook do
it { should belong_to :project }
end
- describe "Mass assignment" do
- it { should_not allow_mass_assignment_of(:project_id) }
- end
-
describe "Validations" do
it { should validate_presence_of(:url) }