Commit 0f550aa3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove mass assgnment specs

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 76dca50a
...@@ -26,7 +26,6 @@ describe GitlabCiService do ...@@ -26,7 +26,6 @@ describe GitlabCiService do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe 'commits methods' do describe 'commits methods' do
......
...@@ -25,8 +25,6 @@ describe Issue do ...@@ -25,8 +25,6 @@ describe Issue do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:author_id) }
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe 'modules' do describe 'modules' do
......
...@@ -20,8 +20,6 @@ describe Key do ...@@ -20,8 +20,6 @@ describe Key do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:project_id) }
it { should_not allow_mass_assignment_of(:user_id) }
end end
describe "Validation" do describe "Validation" do
......
...@@ -28,8 +28,6 @@ describe MergeRequest do ...@@ -28,8 +28,6 @@ describe MergeRequest do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:author_id) }
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe "Respond to" do describe "Respond to" do
......
...@@ -22,7 +22,6 @@ describe Milestone do ...@@ -22,7 +22,6 @@ describe Milestone do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe "Validation" do describe "Validation" do
......
...@@ -26,8 +26,6 @@ describe Namespace do ...@@ -26,8 +26,6 @@ describe Namespace do
it { should validate_presence_of :owner } it { should validate_presence_of :owner }
describe "Mass assignment" do describe "Mass assignment" do
it { should allow_mass_assignment_of(:name) }
it { should allow_mass_assignment_of(:path) }
end end
describe "Respond to" do describe "Respond to" do
......
...@@ -27,8 +27,6 @@ describe Note do ...@@ -27,8 +27,6 @@ describe Note do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:author) }
it { should_not allow_mass_assignment_of(:author_id) }
end end
describe "Validation" do describe "Validation" do
......
...@@ -23,7 +23,6 @@ describe ProjectSnippet do ...@@ -23,7 +23,6 @@ describe ProjectSnippet do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe "Validation" do describe "Validation" do
......
...@@ -48,8 +48,6 @@ describe Project do ...@@ -48,8 +48,6 @@ describe Project do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:namespace_id) }
it { should_not allow_mass_assignment_of(:creator_id) }
end end
describe "Validation" do describe "Validation" do
......
...@@ -17,7 +17,6 @@ describe ProtectedBranch do ...@@ -17,7 +17,6 @@ describe ProtectedBranch do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe 'Validation' do describe 'Validation' do
......
...@@ -27,7 +27,6 @@ describe Service do ...@@ -27,7 +27,6 @@ describe Service do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe "Test Button" do describe "Test Button" do
......
...@@ -24,7 +24,6 @@ describe Snippet do ...@@ -24,7 +24,6 @@ describe Snippet do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:author_id) }
end end
describe "Validation" do describe "Validation" do
......
...@@ -65,8 +65,6 @@ describe User do ...@@ -65,8 +65,6 @@ describe User do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:projects_limit) }
it { should allow_mass_assignment_of(:projects_limit).as(:admin) }
end end
describe 'validations' do describe 'validations' do
......
...@@ -20,7 +20,6 @@ describe UsersGroup do ...@@ -20,7 +20,6 @@ describe UsersGroup do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:group_id) }
end end
describe "Validation" do describe "Validation" do
......
...@@ -20,7 +20,6 @@ describe UsersProject do ...@@ -20,7 +20,6 @@ describe UsersProject do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe "Validation" do describe "Validation" do
......
...@@ -23,7 +23,6 @@ describe ProjectHook do ...@@ -23,7 +23,6 @@ describe ProjectHook do
end end
describe "Mass assignment" do describe "Mass assignment" do
it { should_not allow_mass_assignment_of(:project_id) }
end end
describe "Validations" do describe "Validations" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment