Skip to content

Commit

Permalink
Fixing factories
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulwahaab710 committed Nov 15, 2018
1 parent 988ad2b commit 43a7c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/factories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
end

factory :category do
name { 'web' }
sequence(:name) { |n| "category-#{n}" }
end

factory :challenge do
Expand All @@ -53,7 +53,7 @@

factory :submission do
challenge
category
category { challenge.category }
flag { 'flag{invalid}' }
user
team
Expand Down

0 comments on commit 43a7c02

Please sign in to comment.