Skip to content

Commit

Permalink
Cleaning up specs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel committed Sep 28, 2010
1 parent 6d245fe commit de15de6
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions spec/mail/elements/address_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,18 @@

describe "functionality" do

it "should allow us to instantiate an empty address object and call to_s" do
# doing {
it "should allow us to instantiate an empty address object and call inspect" do
doing {
Mail::Address.new.inspect
# }.should_not raise_error
}.should_not raise_error
end

it "should allow us to instantiate an empty address object and call inspect" do
# doing {
Mail::Address.new.inspect
# }.should_not raise_error
it "should allow us to instantiate an empty address object and call to_s" do
Mail::Address.new.to_s.should == ''
end

it "should allow us to instantiate an empty address object and call format" do
# doing {
Mail::Address.new.format
# }.should_not raise_error
Mail::Address.new.format.should == ''
end

it "should give it's address back on :to_s if there is no display name" do
Expand Down

0 comments on commit de15de6

Please sign in to comment.