Sha256: 72f049cd0dac5bbd8b478bed5c51cd2b1d8a99ea06306954b82eea4fee56b474

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

require 'spec_helper'

describe MailManager::MailingList do
  context "a valid mailing list" do
    before(:each) do
      @mailing_list = FactoryGirl.build(:mailing_list)
    end
    it "must have a name" do 
      @mailing_list.name.present?.should be_true
      @mailing_list.valid?.should be_true
      @mailing_list.name = nil
      @mailing_list.valid?.should be_false
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mail_manager-0.1.4 spec/test_app/spec/models/mail_manager/mailing_list_spec.rb
mail_manager-0.1.2 spec/test_app/spec/models/mail_manager/mailing_list_spec.rb
mail_manager-0.1.1 spec/test_app/spec/models/mail_manager/mailing_list_spec.rb
mail_manager-0.1.0 spec/test_app/spec/models/mail_manager/mailing_list_spec.rb
mail_manager-0.0.1 spec/test_app/spec/models/mail_manager/mailing_list_spec.rb