a little more testing

This commit is contained in:
Adam Cooke
2017-05-08 16:39:32 +01:00
parent 61e3bad83f
commit eee01c9e15
10 changed files with 257 additions and 4 deletions
+33
View File
@@ -0,0 +1,33 @@
# == Schema Information
#
# Table name: track_domains
#
# id :integer not null, primary key
# uuid :string(255)
# server_id :integer
# domain_id :integer
# name :string(255)
# dns_checked_at :datetime
# dns_status :string(255)
# dns_error :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# ssl_enabled :boolean default(TRUE)
# track_clicks :boolean default(TRUE)
# track_loads :boolean default(TRUE)
# excluded_click_domains :text(65535)
#
FactoryGirl.define do
factory :track_domain do
name "click"
dns_status 'OK'
association :server
after(:build) do |track_domain|
track_domain.domain ||= create(:domain, :owner => track_domain.server)
end
end
end