Sha256: 65abcdc4fb32634e0e9414a0ad4efde0f37f9f1ee96ee6afec14b65b22f85f0f

Contents?: true

Size: 679 Bytes

Versions: 4

Compression:

Stored size: 679 Bytes

Contents

require 'pathname'
require Pathname(__FILE__).ascend{|d| h=d+'test_helper.rb'; break h if h.file?}

describe Mannequin::Person.new do
  subject { Mannequin::Person.new }
  describe "creating a person" do
    it "must have a first name" do
      subject.must_respond_to(:first_name)
    end
    
    it "must have a last name" do
      subject.must_respond_to(:last_name)
    end
    
    it "must have a middle name" do
      subject.must_respond_to(:middle_name)
    end
    
    it "must have a middle initial" do
      subject.must_respond_to(:middle_initial)
    end
    
    it "must have an email address" do
      subject.must_respond_to(:email_address)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mannequin-0.3.0 test/lib/mannequin/person_test.rb
mannequin-0.2.0 test/lib/mannequin/person_test.rb
mannequin-0.1.0 test/lib/mannequin/person_test.rb
mannequin-0.0.2 test/lib/mannequin/person_test.rb