From: "Shot (Piotr Szotkowski)" Date: 2008-01-02T17:01:50+09:00 Subject: Re: [rspec-users] RSpec on Ruby 1.9: before(:all) (Not Yet Implemented) pending messages instead of tests --XOIedfhf+7KOe/yw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable David Chelimsky: > On Dec 27, 2007 4:28 PM, Shot (Piotr Szotkowski) wrote: >> 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 =E2=80=93 all my example= s work >> perfectly with Ruby 1.8 but are considered pending on Ruby 1.9. >> How can I bugtrack/fix this? > RSpec's tracker can be found at http://rspec.lighthouseapp.com. Right; I=E2=80=99m not too fluent in RSpec yet (in particular, I didn=E2=80= =99t use any pending specs yet), so I just wanted to ask around before filing a ticket. > The "Not Yet Implemented" issue you had is fixed in trunk now. Most appreciated! I=E2=80=99ll wait for RSpec 1.1.2 before switching to Ruby 1.9 in full then. BTW: The tracker says 1.1.2 =E2=80=98is 11 months late=E2=80=99 and =E2=80= =98Expected: Jan 17th, 2007=E2=80=99. Is 1.1.2 expected in two weeks=E2=80=99 time and it should b= e 2008 there? >> 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 +0= 100 >> +++ lib/spec/runner/options.rb 2007-12-27 16:36:28.000000000 +0100 >> @@ -102,7 +102,7 @@ >> def colour=3D(colour) >> @colour =3D colour >> begin; \ >> - require 'Win32/Console/ANSI' if @colour && PLATFORM =3D~ /win= 32/; \ >> +# require 'Win32/Console/ANSI' if @colour && PLATFORM =3D~ /win= 32/; \ >> rescue LoadError ; \ >> raise "You must gem install win32console to use colour on Win= dows" ; \ >> 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). Sorry for not explaining this one. This is with using `spec -c -D u` on Ubuntu (with diff-lcs installed) =E2=80=93 I keep running into an =E2=80=98= uninitialized constant Spec::Runner::Options::PLATFORM=E2=80=99 error, hence the simplest above workaround. Might be a bug in Ruby 1.9 not scoping the class constants properly, though. > Feel free to submit a ticket to the tracker on this one. #215 filed: http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/215 -- Shot --=20 > So, this guy gets into Guinness by riding a 70-foot wave, > toppling the previous record-holder's 68-footer. How do they > measure the height of the waves to that degree of accuracy? With a barometer, silly. -- John Hatpin and Stan, afca --XOIedfhf+7KOe/yw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFHe0Yfi/mCfdEo8UoRAg4VAJ4j4eXl7rkfTeJAP1oRpZujaDPf5QCfYMP7 T8472PhNCActBf+kLb2Uxyo= =9dao -----END PGP SIGNATURE----- --XOIedfhf+7KOe/yw--