Skip to content
Browse files

Update context

  • Loading branch information...
1 parent a48df5c commit e8c447b5ee859524886afc6b9ef61f4442a23e72 @weppos committed Feb 18, 2011
Showing with 18 additions and 18 deletions.
  1. +18 −18 spec/whois/answer/parser/whois.nic.it_spec.rb
View
36 spec/whois/answer/parser/whois.nic.it_spec.rb
@@ -10,42 +10,42 @@
# TODO: test property patterns instead of each different type
describe "#status" do
- context "status registered" do
+ context "value is active" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_active.txt'))
expected = :registered
parser.should support_property_and_cache(:status, expected)
end
end
- context "status ok" do
+ context "value is ok" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = :registered
parser.should support_property_and_cache(:status, expected)
end
end
- context "status ok autorenew" do
+ context "value is ok autorenew" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = :registered
parser.should support_property_and_cache(:status, expected)
end
end
- context "status client" do
+ context "value is client" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = :registered
parser.should support_property_and_cache(:status, expected)
end
end
- context "status pendingDelete" do
+ context "value is pendingDelete" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_pendingdelete.txt'))
expected = :registered
parser.should support_property_and_cache(:status, expected)
end
end
- context "status available" do
+ context "value is available" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_available.txt'))
expected = :available
@@ -55,42 +55,42 @@
end
describe "#available?" do
- context "status registered" do
+ context "value is active" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_active.txt'))
expected = false
parser.should support_property_and_cache(:available?, expected)
end
end
- context "status ok" do
+ context "value is ok" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = false
parser.should support_property_and_cache(:available?, expected)
end
end
- context "status ok autorenew" do
+ context "value is ok autorenew" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = false
parser.should support_property_and_cache(:available?, expected)
end
end
- context "status client" do
+ context "value is client" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = false
parser.should support_property_and_cache(:available?, expected)
end
end
- context "status pendingDelete" do
+ context "value is pendingDelete" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_pendingdelete.txt'))
expected = false
parser.should support_property_and_cache(:available?, expected)
end
end
- context "status available" do
+ context "value is available" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_available.txt'))
expected = true
@@ -100,42 +100,42 @@
end
describe "#registered?" do
- context "status registered" do
+ context "value is active" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_active.txt'))
expected = true
parser.should support_property_and_cache(:registered?, expected)
end
end
- context "status ok" do
+ context "value is ok" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = true
parser.should support_property_and_cache(:registered?, expected)
end
end
- context "status ok autorenew" do
+ context "value is ok autorenew" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = true
parser.should support_property_and_cache(:registered?, expected)
end
end
- context "status client" do
+ context "value is client" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_ok.txt'))
expected = true
parser.should support_property_and_cache(:registered?, expected)
end
end
- context "status pendingDelete" do
+ context "value is pendingDelete" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_pendingdelete.txt'))
expected = true
parser.should support_property_and_cache(:registered?, expected)
end
end
- context "status available" do
+ context "value is available" do
it "returns and cache the value" do
parser = klass.new(load_part('property_status_available.txt'))
expected = false

0 comments on commit e8c447b

Please sign in to comment.
Something went wrong with that request. Please try again.