Sha256: 37f664b43a25eecfd57be53f69e2054819da1c5776f8cf4c529a3245edab6b40

Contents?: true

Size: 426 Bytes

Versions: 7

Compression:

Stored size: 426 Bytes

Contents

require 'spec_helper'

describe WorkEffortAssignment do
  it "can be instantiated" do
    WorkEffortAssignment.new.should be_an_instance_of(WorkEffortAssignment)
  end

  it "can be saved successfully" do
    party = Party.new(:description => 'Test Party')
    work_effort = WorkEffort.new
    WorkEffortAssignment.create(:assigned_to => party, :assigned_by => party, :work_effort => work_effort).should be_persisted
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
erp_work_effort-3.1.1 spec/models/work_effort_assignment_spec.rb
erp_work_effort-3.1.0 spec/models/work_effort_assignment_spec.rb
erp_work_effort-3.0.4 spec/models/work_effort_assignment_spec.rb
erp_work_effort-3.0.3 spec/models/work_effort_assignment_spec.rb
erp_work_effort-3.0.2 spec/models/work_effort_assignment_spec.rb
erp_work_effort-3.0.1 spec/models/work_effort_assignment_spec.rb
erp_work_effort-3.0.0 spec/models/work_effort_assignment_spec.rb