diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-08-28 01:42:28 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-08-28 21:22:49 -0400 |
commit | c9c1f76e002d899dd6765c4c1630697cc5068f27 (patch) | |
tree | 0ab18369aa5df80c89b1618e4de75eaa33da174b /spec/factories_spec.rb | |
parent | 4805c64f2a96e8a9ea5a0e94a820d840fa1675e0 (diff) | |
download | gitlab-ce-c9c1f76e002d899dd6765c4c1630697cc5068f27.tar.gz |
All specs and features currently passing with FactoryGirl
Diffstat (limited to 'spec/factories_spec.rb')
-rw-r--r-- | spec/factories_spec.rb | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/spec/factories_spec.rb b/spec/factories_spec.rb new file mode 100644 index 00000000000..126a5b2309f --- /dev/null +++ b/spec/factories_spec.rb @@ -0,0 +1,83 @@ +require 'spec_helper' + +describe "Factories" do + describe 'User' do + it "builds a valid instance" do + build(:user).should be_valid + end + + it "builds a valid admin instance" do + build(:admin).should be_valid + end + end + + describe 'Project' do + it "builds a valid instance" do + build(:project).should be_valid + end + end + + describe 'Issue' do + it "builds a valid instance" do + build(:issue).should be_valid + end + + it "builds a valid closed instance" do + build(:closed_issue).should be_valid + end + end + + describe 'MergeRequest' do + it "builds a valid instance" do + build(:merge_request).should be_valid + end + end + + describe 'Note' do + it "builds a valid instance" do + build(:note).should be_valid + end + end + + describe 'Event' do + it "builds a valid instance" do + build(:event).should be_valid + end + end + + describe 'Key' do + it "builds a valid instance" do + build(:key).should be_valid + end + end + + describe 'Milestone' do + it "builds a valid instance" do + build(:milestone).should be_valid + end + end + + describe 'SystemHook' do + it "builds a valid instance" do + build(:system_hook).should be_valid + end + end + + describe 'ProjectHook' do + it "builds a valid instance" do + build(:project_hook).should be_valid + end + end + + describe 'Wiki' do + it "builds a valid instance" do + build(:wiki).should be_valid + end + end + + describe 'Snippet' do + it "builds a valid instance" do + build(:snippet).should be_valid + end + end +end |