Remove outdated specs

#206
This commit is contained in:
Artur Beljajev 2016-10-25 02:35:58 +03:00
parent 3cca4c78cc
commit c88d21ab1d
55 changed files with 16 additions and 7287 deletions

View file

@ -1,29 +1,22 @@
require 'rails_helper'
describe Nameserver do
before :all do
before :example do
Fabricate(:zonefile_setting, origin: 'ee')
end
context 'with invalid attribute' do
before :all do
before :example do
@nameserver = Nameserver.new
end
it 'should not be valid' do
@nameserver.valid?
@nameserver.errors.full_messages.should match_array([
"Hostname Hostname is invalid"
])
end
it 'should not have any versions' do
@nameserver.versions.should == []
end
end
context 'with valid attributes' do
before :all do
before :example do
@nameserver = Fabricate(:nameserver)
end
@ -49,7 +42,7 @@ describe Nameserver do
end
context 'with many nameservers' do
before :all do
before :example do
@api_user = Fabricate(:api_user)
@domain_1 = Fabricate(:domain, nameservers: [
Fabricate(:nameserver, hostname: 'ns1.ns.ee'),