diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-10-09 01:17:38 -0700 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-10-09 01:17:38 -0700 |
commit | dc33f71b181d154c8d9937f777fa16e9cf1d968d (patch) | |
tree | 1424eedeeeb4a9016d0f6dc5a5986c17e74e9122 /spec/models/snippet_spec.rb | |
parent | c348284fedb487474626b3dae9be73311f8382df (diff) | |
parent | a4cd738686659314f0bb9fd13a80845dc2b036ab (diff) | |
download | gitlab-ce-dc33f71b181d154c8d9937f777fa16e9cf1d968d.tar.gz |
Merge pull request #1656 from zzet/refactoring
Refactoring
Diffstat (limited to 'spec/models/snippet_spec.rb')
-rw-r--r-- | spec/models/snippet_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/snippet_spec.rb b/spec/models/snippet_spec.rb index 66c36e51ec7..465612e0f19 100644 --- a/spec/models/snippet_spec.rb +++ b/spec/models/snippet_spec.rb @@ -13,8 +13,8 @@ describe Snippet do end describe "Validation" do - it { should validate_presence_of(:author_id) } - it { should validate_presence_of(:project_id) } + it { should validate_presence_of(:author) } + it { should validate_presence_of(:project) } it { should validate_presence_of(:title) } it { should ensure_length_of(:title).is_within(0..255) } |