diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-09-28 17:38:12 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-10-07 12:46:23 +0300 |
commit | d328007214786c7137c31d2c73e9ee76b025e6ed (patch) | |
tree | fe4ec118148b7397890f86c6b2982ce667086c38 /spec/models/fork_network_member_spec.rb | |
parent | 20727db1702849b78e6714197f16f602f68cecf8 (diff) |
Create a fork network when forking a project
When no fork network exists for the source projects, we create a new
one with the correct source
Diffstat (limited to 'spec/models/fork_network_member_spec.rb')
-rw-r--r-- | spec/models/fork_network_member_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/fork_network_member_spec.rb b/spec/models/fork_network_member_spec.rb new file mode 100644 index 00000000000..532ca1fca8c --- /dev/null +++ b/spec/models/fork_network_member_spec.rb @@ -0,0 +1,8 @@ +require 'spec_helper' + +describe ForkNetworkMember do + describe 'validations' do + it { is_expected.to validate_presence_of(:project) } + it { is_expected.to validate_presence_of(:fork_network) } + end +end |