Sha256: d0533ed5b2f8b4418c7bbbc71f1092bf315ff7dae8b89874083c3b7bae70fd78
Contents?: true
Size: 725 Bytes
Versions: 4
Compression:
Stored size: 725 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe Postini::Domain do describe "a new instance" do before(:each) do @domain = Postini::Domain.new end it "should indicate a new instance" do @domain.should be_new end end describe "a popuated instance" do before(:each) do @domain = Postini::Domain.new( :id => 100, :name => 'example.com' ) end it "should have attibutes passed to #new" do @domain.id.should be(100) @domain.name.should eql('example.com') end it "should not be new" do @domain.should_not be_new end it "should not be created" do @domain.create.should be_false end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
postini-0.0.1 | spec/domain_spec.rb |
postini-0.0.2 | spec/domain_spec.rb |
postini-0.0.3 | spec/domain_spec.rb |
postini-0.0.6 | spec/domain_spec.rb |