Commit 92ca24fc authored by Phil Hughes's avatar Phil Hughes

Added model specs

parent 025a1b01
require 'spec_helper'
describe ProtectedBranch::MergeAccessLevel, :models do
it { is_expected.to validate_inclusion_of(:access_level).in_array([Gitlab::Access::MASTER, Gitlab::Access::DEVELOPER, Gitlab::Access::NO_ACCESS]) }
end
require 'spec_helper'
describe ProtectedBranch::PushAccessLevel, :models do
it { is_expected.to validate_inclusion_of(:access_level).in_array([Gitlab::Access::MASTER, Gitlab::Access::DEVELOPER, Gitlab::Access::NO_ACCESS]) }
end
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