On Dec 27, 2007 4:28 PM, Shot (Piotr Szotkowski) <[EMAIL PROTECTED]> wrote: > Hi. > > I happily hand-compiled Ruby 1.9.0-0 into /home/shot/opt/ruby today > and I'm running into a strange error with RSpec – all my examples work > perfectly with Ruby 1.8 but are considered peding on Ruby 1.9.
<snip/> > Pending: > ArtDecomp::Architecture before(:all) (Not Yet Implemented) > ArtDecomp::Architecture before(:all) (Not Yet Implemented) > ArtDecomp::Architecture before(:all) (Not Yet Implemented) > > Finished in 0.012114249 seconds > > 3 examples, 0 failures, 3 pending > > How can I bugtrack/fix this? RSpec's tracker can be found at http://rspec.lighthouseapp.com. The "Not Yet Implemented" issue you had is fixed in trunk now. > I had to patch RSpec in the below manner to get it running > on Ruby 1.9, but I doubt these fixes can be the culprit. > > --- lib/spec/runner/options.rb.orig 2007-12-27 16:36:03.000000000 +0100 > +++ lib/spec/runner/options.rb 2007-12-27 16:36:28.000000000 +0100 > @@ -102,7 +102,7 @@ > def colour=(colour) > @colour = colour > begin; \ > - require 'Win32/Console/ANSI' if @colour && PLATFORM =~ /win32/; \ > +# require 'Win32/Console/ANSI' if @colour && PLATFORM =~ /win32/; \ > rescue LoadError ; \ > raise "You must gem install win32console to use colour on Windows" > ; \ > end > --- lib/spec/matchers/be.rb.orig 2007-12-27 16:30:51.000000000 +0100 > +++ lib/spec/matchers/be.rb 2007-12-27 16:32:14.000000000 +0100 > @@ -124,7 +124,8 @@ > def parse_expected(expected) > if Symbol === expected > @handling_predicate = true > - ["be_an_","be_a_","be_"].each do |@prefix| > + ["be_an_","be_a_","be_"].each do |at_prefix| > + @prefix = at_prefix > if expected.starts_with?(@prefix) > return "#{expected.to_s.sub(@prefix,"")}".to_sym > end > The change to be.rb has already been applied, but not the change to options.rb. I'm not sure I see any relationship between that and problems you might be experiencing with 1.9 (unless win32console does not yet support 1.9). Feel free to submit a ticket to the tracker on this one. Cheers, David _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
