You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
368 B
17 lines
368 B
shared_context "data" do |
|
|
|
let(:user){Factory(:user)} |
|
|
|
let(:domain){ |
|
domain = Factory.build(:domain, :user => user) |
|
domain.setup(FactoryGirl.generate(:email)) |
|
domain.save! |
|
domain.soa_record.update_serial! |
|
domain |
|
} |
|
|
|
let(:a_record){Factory(:a, :content => '127.0.0.1', :domain => domain)} |
|
|
|
let(:soa_record){domain.soa_record} |
|
|
|
end
|
|
|