Bugs: Browse | Submit New | Admin

[#28818] elsif not being tracked properly?

Date:
2011-01-04 17:49
Priority:
3
Submitted By:
Don Nielsen (dkmd_nielsen)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
elsif not being tracked properly?

Detailed description
rcov v9.9 running under jruby 1.5

The following snippet results in the elsif not having been covered (hightlighted red) even though a specific rspec test
triggers the action.

    # set the attribute values if all have been specified
    if !pos.nil? && !lg.nil? && !fmt.nil?
      # assign attribute values
      self.pos = pos
      self.lg = lg
      self.fmt = fmt
    # allow an empty instance if all the attributes are nil.  This occurs when
    # a def_entry is created.
    elsif pos.nil? && lg.nil? && fmt.nil?
    else
      raise ArgumentError, 'All or none when specifying Fmt_Entry attributes.'
    end

Good luck and have a good one!

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item