Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-387

Regexp warning causing test failure

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • CIMI/Frontend
    • None
    • Windows 7, ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32]

    Description

      When running ruby cimi\part5_test.rb (--seed 58494):

      2) Failure:
      test_0021_should return possible operations to be executed on a machine [json](ManipulateAMachine) [cimi/part5_test.rb:111]:
      In stderr.
      — expected
      +++ actual
      @@ -1 +1,2 @@
      -""
      +"./cimi/test_helper.rb:103: warning: flags ignored
      +"

      The warning comes from:
      op_regex = Regexp.new(op, Regexp::IGNORECASE) # "add" == /add/i

      it looks like the warning is causing the test to fail.

      Attachments

        Activity

          People

            mfojtik Michal Fojtik
            dkoper Dies Koper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: