Skip to content

Commit

Permalink
Remove factories for removed models
Browse files Browse the repository at this point in the history
  • Loading branch information
csutter committed Jun 20, 2024
1 parent ebb3063 commit f47fa92
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions spec/factories.rb
Original file line number Diff line number Diff line change
@@ -1,39 +1,4 @@
FactoryBot.define do
sequence :numeric_position do |n|
n
end

factory :bet do
link { "/death-and-taxes" }
expiration_date { Time.zone.now + 1.day }

trait(:worst) do
is_best { false }
end

trait(:best) do
is_best { true }
position { generate :numeric_position }
end

trait(:permanent) do
permanent { true }
end

user
end

factory :query do
query { "tax" }
match_type { "exact" }

trait :with_best_bet do
after(:create) do |query|
create(:bet, :best, query:)
end
end
end

factory :recommended_link do
title { "Tax online" }
link { "https://www.tax.service.gov.uk/" }
Expand Down

0 comments on commit f47fa92

Please sign in to comment.