Nicolae Claudius
13 years ago
4 changed files with 35 additions and 10 deletions
@ -0,0 +1,12 @@
|
||||
module AngelNest |
||||
module TestHelpers |
||||
|
||||
# def make_user |
||||
# end |
||||
|
||||
end |
||||
end |
||||
|
||||
RSpec.configure do |config| |
||||
config.include AngelNest::TestHelpers |
||||
end |
@ -0,0 +1,15 @@
|
||||
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)} |
||||
|
||||
end |
Loading…
Reference in new issue