Sha256: 887877458d9d5833b597c4b53980c951172a655fe786d5a9492665cfaeaeee34

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

require 'spec_helper'

describe CustomerPf do
  
  before do
    @customerPf = CustomerPf.new :department => "RH", :corporate_function => "Gestor"
  end
  
  subject { @customerPf }
  
  it { should respond_to(:emails) }
  it { should respond_to(:department) }
  it { should respond_to(:corporate_function) }
  
  describe "Relationship 1 to 1 Customer" do
    before do 
      customer = Customer.new(:name => "Teste n");
      @customerPf.customer = customer
    end
    
    it { should be_valid }
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 spec/models/customer_pf_spec.rb
guara-0.0.1.rc spec/models/customer_pf_spec.rb