#502 √ invalid
Marnen Laibow-Koser

Singleton.new fails tests during CI

Reported by Marnen Laibow-Koser | April 18th, 2008 @ 10:24 AM | in 0.10

When I run rake spec:ci, about every second time or so I get one failed test, as follows:

1)
Singleton.new is a private method FAILED
Expected NoMethodError but no exception was raised
            Expectation.fail_with at ./mspec/expectations.rb:10
    Object(Proc::Function)#should at ./mspec/expectations/should.rb:6
             Object#__script__ {} at ./spec/ruby/1.8/library/singleton/new_spec.rb:6
                        Proc#call at kernel/core/proc.rb:84
                    MSpec.protect at ./mspec/runner/mspec.rb:124
              RunState#protect {} at ./mspec/runner/state.rb:46
                       Array#each at kernel/core/array.rb:573
                 RunState#protect at ./mspec/runner/state.rb:46
              RunState#process {} at ./mspec/runner/state.rb:64
                       Array#each at kernel/core/array.rb:573
                 RunState#process at ./mspec/runner/state.rb:68
                   MSpec.describe at ./mspec/runner/mspec.rb:29
                  Object#describe at ./mspec/runner/object.rb:11
                Object#__script__ at ./spec/ruby/1.8/library/singleton/new_spec.rb:4
         CompiledMethod#as_script at kernel/core/compiled_method.rb:326
              Compile.single_load at kernel/core/compile.rb:233
          Compile.unified_load {} at kernel/core/compile.rb:150
                       Array#each at kernel/core/array.rb:573
             Compile.unified_load at kernel/core/compile.rb:120
                      Kernel.load at kernel/core/compile.rb:390
                   MSpec.files {} at ./mspec/runner/mspec.rb:45
                        Proc#call at kernel/core/proc.rb:84
                    MSpec.protect at ./mspec/runner/mspec.rb:120
                   MSpec.files {} at ./mspec/runner/mspec.rb:46
                       Array#each at kernel/core/array.rb:573
                      MSpec.files at ./mspec/runner/mspec.rb:42
                    MSpec.process at ./mspec/runner/mspec.rb:35
                      MSpecCI#run at mspec/bin/mspec-ci:66
                     MSpecCI.main at ./mspec/bin/script.rb:71
                Object#__script__ at mspec/bin/mspec-ci:73
         CompiledMethod#as_script at kernel/core/compiled_method.rb:326
              Compile.single_load at kernel/core/compile.rb:233
      Compile.load_from_extension at kernel/core/compile.rb:310
                Object#__script__ at kernel/loader.rb:200

I'm using Mac OS X 10.5.2 (Intel). So far I haven't tried it in another build environment. I plan to investigate over the next few days, but if anyone wants to lend a hand, I'd appreciate it.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Tags