Permalink
Browse files

Remove all the RSpec pretty

* Also tweak available? to return false instead of false-y
  • Loading branch information...
1 parent 35b434c commit d7744b534d6f622b0badd305d721afb0846173b5 @rorymckinley committed Nov 4, 2012
View
2 lib/whois/record/parser/whois.registry.net.za.rb
@@ -18,7 +18,7 @@ class WhoisRegistryNetZa < Base
include Scanners::Nodable
property_supported :available? do
- node(:available)
+ node(:available) ? true : false
end
property_supported :registered? do
View
20 spec/fixtures/responses/whois.registry.net.za/status_available.expected
@@ -1,29 +1,29 @@
#available?
- should: %s be_true
+ should: %s == true
#registered?
- should: %s be_false
+ should: %s == false
#nameservers
- should: %s be_empty
+ should: %s == []
#registrar
- should: %s be_nil
+ should: %s == nil
#registrant_contacts
- should: %s be_empty
+ should: %s == []
#domain
- should: %s be_nil
+ should: %s == nil
#created_on
- should: %s be_nil
+ should: %s == nil
#status
- should: %s be_nil
+ should: %s == nil
#expires_on
- should: %s be_nil
+ should: %s == nil
#disclaimer
- should: %s be_nil
+ should: %s == nil
View
4 spec/fixtures/responses/whois.registry.net.za/status_registered.expected
@@ -1,8 +1,8 @@
#available?
- should: %s be_false
+ should: %s == false
#registered?
- should: %s be_true
+ should: %s == true
#nameservers
should: %s CLASS(array)
View
20 spec/whois/record/parser/responses/whois.registry.net.za/status_available_spec.rb
@@ -23,52 +23,52 @@
describe "#available?" do
it do
- subject.available?.should be_true
+ subject.available?.should == true
end
end
describe "#registered?" do
it do
- subject.registered?.should be_false
+ subject.registered?.should == false
end
end
describe "#nameservers" do
it do
- subject.nameservers.should be_empty
+ subject.nameservers.should == []
end
end
describe "#registrar" do
it do
- subject.registrar.should be_nil
+ subject.registrar.should == nil
end
end
describe "#registrant_contacts" do
it do
- subject.registrant_contacts.should be_empty
+ subject.registrant_contacts.should == []
end
end
describe "#domain" do
it do
- subject.domain.should be_nil
+ subject.domain.should == nil
end
end
describe "#created_on" do
it do
- subject.created_on.should be_nil
+ subject.created_on.should == nil
end
end
describe "#status" do
it do
- subject.status.should be_nil
+ subject.status.should == nil
end
end
describe "#expires_on" do
it do
- subject.expires_on.should be_nil
+ subject.expires_on.should == nil
end
end
describe "#disclaimer" do
it do
- subject.disclaimer.should be_nil
+ subject.disclaimer.should == nil
end
end
end
View
4 spec/whois/record/parser/responses/whois.registry.net.za/status_registered_spec.rb
@@ -23,12 +23,12 @@
describe "#available?" do
it do
- subject.available?.should be_false
+ subject.available?.should == false
end
end
describe "#registered?" do
it do
- subject.registered?.should be_true
+ subject.registered?.should == true
end
end
describe "#nameservers" do

0 comments on commit d7744b5

Please sign in to comment.