Skip to content

Commit

Permalink
Merge pull request #9 from Joas1988/devel
Browse files Browse the repository at this point in the history
Activate news and member factories
  • Loading branch information
ondra-m authored Apr 5, 2019
2 parents f5ab7df + 17a82ac commit 92a0529
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/factories/news.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FactoryBot.define do

factory :news do
project
sequence(:title) {|n| 'News #' + n.to_s }
summary { 'Lorem Ipsum is simply dummy text' }
description { 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.' }
author
end

end
4 changes: 4 additions & 0 deletions spec/factory_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def factories(names)
it { FactoryBot.lint factories(%i[issue issue_custom_field journal tracker issue_status issue_priority]) }
end

context "News" do
it { FactoryBot.lint factories(%i[news]) }
end

context "Project" do
it { FactoryBot.lint factories(%i[project role]) }
end
Expand Down

0 comments on commit 92a0529

Please sign in to comment.