Conrad Taylor
2009-Nov-03 12:25 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
Hi, ''rake spec'' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. I''m getting the following error message when I run the specs: /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ option_parser_spec.rb:21:in `block (2 levels) in <top (required)>'': wrong number of arguments (0 for 1) (ArgumentError) After analyzing the error message, it appears that "use_fakefs" method on lines 21 and 522 of the option_parser_spec.rb should take an argument. -Conrad
David Chelimsky
2009-Nov-04 22:28 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor <conradwt at gmail.com> wrote:> Hi, ''rake spec'' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9.Hi Conrad, If this was a problem in the gem, it is now fixed: $ rvm 1.9.1 $ which ruby /Users/david/.rvm/ruby-1.9.1-p243/bin/ruby $ rake spec ... 1522 examples, 0 failures, 2 pending Cheers, David> I''m > getting the following error message when I run the specs: > > /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ > option_parser_spec.rb:21:in `block (2 levels) in <top (required)>'': > wrong number of arguments (0 for 1) (ArgumentError) > > After analyzing the error message, it appears that "use_fakefs" method > on lines 21 and 522 of the > > option_parser_spec.rb > > should take an argument. > > -Conrad > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091104/97718572/attachment-0001.html>
Conrad Taylor
2009-Nov-08 07:35 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
David, I''m still seeing the issue. Thus, here''s a transcript of my activity: http://pastie.org/688639 -Conrad On Nov 4, 2:28?pm, David Chelimsky <dchelim... at gmail.com> wrote:> On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor <conra... at gmail.com> wrote: > > Hi, ''rake spec'' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. > > Hi Conrad, > > If this was a problem in the gem, it is now fixed: > > $ rvm 1.9.1 > $ which ruby > /Users/david/.rvm/ruby-1.9.1-p243/bin/ruby > $ rake spec > ... > 1522 examples, 0 failures, 2 pending > > Cheers, > David > > > > > I''m > > getting the following error message when I run the specs: > > > /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ > > option_parser_spec.rb:21:in `block (2 levels) in <top (required)>'': > > wrong number of arguments (0 for 1) (ArgumentError) > > > After analyzing the error message, it appears that "use_fakefs" method > > on lines 21 and 522 of the > > > option_parser_spec.rb > > > should take an argument. > > > -Conrad > > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.org > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
David Chelimsky
2009-Nov-08 15:30 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
On Sun, Nov 8, 2009 at 2:35 AM, Conrad Taylor <conradwt at gmail.com> wrote:> David, I''m still seeing the issue. Thus, here''s a transcript of my > activity: > > http://pastie.org/688639$ gem which fakefs (checking gem bmabey-fakefs-0.1.1.1 for fakefs) /Users/david/.rvm/gems/ruby/1.9.1/gems/bmabey-fakefs-0.1.1.1/lib/fakefs.rb What version of fakefs are you using?> > > -Conrad > > On Nov 4, 2:28 pm, David Chelimsky <dchelim... at gmail.com> wrote: > > On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor <conra... at gmail.com> > wrote: > > > Hi, ''rake spec'' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. > > > > Hi Conrad, > > > > If this was a problem in the gem, it is now fixed: > > > > $ rvm 1.9.1 > > $ which ruby > > /Users/david/.rvm/ruby-1.9.1-p243/bin/ruby > > $ rake spec > > ... > > 1522 examples, 0 failures, 2 pending > > > > Cheers, > > David > > > > > > > > > I''m > > > getting the following error message when I run the specs: > > > > > /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ > > > option_parser_spec.rb:21:in `block (2 levels) in <top (required)>'': > > > wrong number of arguments (0 for 1) (ArgumentError) > > > > > After analyzing the error message, it appears that "use_fakefs" method > > > on lines 21 and 522 of the > > > > > option_parser_spec.rb > > > > > should take an argument. > > > > > -Conrad > > > > > _______________________________________________ > > > rspec-users mailing list > > > rspec-us... at rubyforge.org > > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.orghttp:// > rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091108/ae00690a/attachment.html>
Bogdan Dumitru
2009-Nov-21 03:06 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
The syntax for use_fakefs changed in version 0.2.1 and the fixtures for rspec are generating errors, but it can be solved easily. Have to change ... describe "smth" do extend FakeFS::SpecHelpers use_fakefs ... end To... extend FakeFS::SpecHelpers use_fakefs describe "smth" do ... end As it seems the use_fakefs method now takes the describe block as a parameter and thus the error regarding the wrong number of parameters. On Nov 8, 3:30?pm, David Chelimsky <dchelim... at gmail.com> wrote:> On Sun, Nov 8, 2009 at 2:35 AM, Conrad Taylor <conra... at gmail.com> wrote: > > David, I''m still seeing the issue. ?Thus, here''s a transcript of my > > activity: > > >http://pastie.org/688639 > > $ gem which fakefs > (checking gem bmabey-fakefs-0.1.1.1 for fakefs) > /Users/david/.rvm/gems/ruby/1.9.1/gems/bmabey-fakefs-0.1.1.1/lib/fakefs.rb > > What version of fakefs are you using? > > > > > -Conrad > > > On Nov 4, 2:28 pm, David Chelimsky <dchelim... at gmail.com> wrote: > > > On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor <conra... at gmail.com> > > wrote: > > > > Hi, ''rake spec'' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. > > > > Hi Conrad, > > > > If this was a problem in the gem, it is now fixed: > > > > $ rvm 1.9.1 > > > $ which ruby > > > /Users/david/.rvm/ruby-1.9.1-p243/bin/ruby > > > $ rake spec > > > ... > > > 1522 examples, 0 failures, 2 pending > > > > Cheers, > > > David > > > > > I''m > > > > getting the following error message when I run the specs: > > > > > /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ > > > > option_parser_spec.rb:21:in `block (2 levels) in <top (required)>'': > > > > wrong number of arguments (0 for 1) (ArgumentError) > > > > > After analyzing the error message, it appears that "use_fakefs" method > > > > on lines 21 and 522 of the > > > > > option_parser_spec.rb > > > > > should take an argument. > > > > > -Conrad > > > > > _______________________________________________ > > > > rspec-users mailing list > > > > rspec-us... at rubyforge.org > > > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > _______________________________________________ > > > rspec-users mailing list > > > rspec-us... at rubyforge.orghttp:// > > rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.org > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
David Chelimsky
2009-Nov-24 02:35 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru <dumbogdan at gmail.com> wrote:> The syntax for use_fakefs changed in version 0.2.1 and the fixtures > for rspec are generating errors, but it can be solved easily. > Have to change ... > describe "smth" do > extend FakeFS::SpecHelpers > use_fakefs > ... > end > To... > extend FakeFS::SpecHelpers > use_fakefs describe "smth" do ... end > > As it seems the use_fakefs method now takes the describe block as a > parameter and thus the error regarding the wrong number of parameters. >I had to do this slightly differently, but got it to work with fakefs-0.2.1. Fixed in git. Cheers, David> > > On Nov 8, 3:30 pm, David Chelimsky <dchelim... at gmail.com> wrote: > > On Sun, Nov 8, 2009 at 2:35 AM, Conrad Taylor <conra... at gmail.com> > wrote: > > > David, I''m still seeing the issue. Thus, here''s a transcript of my > > > activity: > > > > >http://pastie.org/688639 > > > > $ gem which fakefs > > (checking gem bmabey-fakefs-0.1.1.1 for fakefs) > > > /Users/david/.rvm/gems/ruby/1.9.1/gems/bmabey-fakefs-0.1.1.1/lib/fakefs.rb > > > > What version of fakefs are you using? > > > > > > > > > -Conrad > > > > > On Nov 4, 2:28 pm, David Chelimsky <dchelim... at gmail.com> wrote: > > > > On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor <conra... at gmail.com> > > > wrote: > > > > > Hi, ''rake spec'' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. > > > > > > Hi Conrad, > > > > > > If this was a problem in the gem, it is now fixed: > > > > > > $ rvm 1.9.1 > > > > $ which ruby > > > > /Users/david/.rvm/ruby-1.9.1-p243/bin/ruby > > > > $ rake spec > > > > ... > > > > 1522 examples, 0 failures, 2 pending > > > > > > Cheers, > > > > David > > > > > > > I''m > > > > > getting the following error message when I run the specs: > > > > > > > /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ > > > > > option_parser_spec.rb:21:in `block (2 levels) in <top (required)>'': > > > > > wrong number of arguments (0 for 1) (ArgumentError) > > > > > > > After analyzing the error message, it appears that "use_fakefs" > method > > > > > on lines 21 and 522 of the > > > > > > > option_parser_spec.rb > > > > > > > should take an argument. > > > > > > > -Conrad > > > > > > > _______________________________________________ > > > > > rspec-users mailing list > > > > > rspec-us... at rubyforge.org > > > > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > _______________________________________________ > > > > rspec-users mailing list > > > > rspec-us... at rubyforge.orghttp:// > > > rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > > > rspec-users mailing list > > > rspec-us... at rubyforge.org > > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.orghttp:// > rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091123/e90e7442/attachment-0001.html>
Scott Taylor
2009-Nov-24 03:36 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote:> On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru <dumbogdan at gmail.com> wrote: > The syntax for use_fakefs changed in version 0.2.1 and the fixtures > for rspec are generating errors, but it can be solved easily. > Have to change ... > describe "smth" do > extend FakeFS::SpecHelpers > use_fakefs > ... > end > To... > extend FakeFS::SpecHelpers > use_fakefs describe "smth" do ... end > > As it seems the use_fakefs method now takes the describe block as a > parameter and thus the error regarding the wrong number of parameters. > > I had to do this slightly differently, but got it to work with fakefs-0.2.1. Fixed in git. > > Cheers, > DavidYou can use include, too: module SpecHelpers def self.extended(example_group) example_group.use_fakefs(example_group) end def self.included(example_group) example_group.extend self end .. end Scott> > > > On Nov 8, 3:30 pm, David Chelimsky <dchelim... at gmail.com> wrote: > > On Sun, Nov 8, 2009 at 2:35 AM, Conrad Taylor <conra... at gmail.com> wrote: > > > David, I''m still seeing the issue. Thus, here''s a transcript of my > > > activity: > > > > >http://pastie.org/688639 > > > > $ gem which fakefs > > (checking gem bmabey-fakefs-0.1.1.1 for fakefs) > > /Users/david/.rvm/gems/ruby/1.9.1/gems/bmabey-fakefs-0.1.1.1/lib/fakefs.rb > > > > What version of fakefs are you using? > > > > > > > > > -Conrad > > > > > On Nov 4, 2:28 pm, David Chelimsky <dchelim... at gmail.com> wrote: > > > > On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor <conra... at gmail.com> > > > wrote: > > > > > Hi, ''rake spec'' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. > > > > > > Hi Conrad, > > > > > > If this was a problem in the gem, it is now fixed: > > > > > > $ rvm 1.9.1 > > > > $ which ruby > > > > /Users/david/.rvm/ruby-1.9.1-p243/bin/ruby > > > > $ rake spec > > > > ... > > > > 1522 examples, 0 failures, 2 pending > > > > > > Cheers, > > > > David > > > > > > > I''m > > > > > getting the following error message when I run the specs: > > > > > > > /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ > > > > > option_parser_spec.rb:21:in `block (2 levels) in <top (required)>'': > > > > > wrong number of arguments (0 for 1) (ArgumentError) > > > > > > > After analyzing the error message, it appears that "use_fakefs" method > > > > > on lines 21 and 522 of the > > > > > > > option_parser_spec.rb > > > > > > > should take an argument. > > > > > > > -Conrad > > > > > > > _______________________________________________ > > > > > rspec-users mailing list > > > > > rspec-us... at rubyforge.org > > > > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > _______________________________________________ > > > > rspec-users mailing list > > > > rspec-us... at rubyforge.orghttp:// > > > rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > > > rspec-users mailing list > > > rspec-us... at rubyforge.org > > >http://rubyforge.org/mailman/listinfo/rspec-users > > > > > > > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091123/c7a95b80/attachment.html>
David Chelimsky
2009-Nov-24 04:12 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
On Mon, Nov 23, 2009 at 9:36 PM, Scott Taylor <scott at railsnewbie.com> wrote:> > On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote: > > On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru <dumbogdan at gmail.com>wrote: > >> The syntax for use_fakefs changed in version 0.2.1 and the fixtures >> for rspec are generating errors, but it can be solved easily. >> Have to change ... >> describe "smth" do >> extend FakeFS::SpecHelpers >> use_fakefs >> ... >> end >> To... >> extend FakeFS::SpecHelpers >> use_fakefs describe "smth" do ... end >> >> As it seems the use_fakefs method now takes the describe block as a >> parameter and thus the error regarding the wrong number of parameters. >> > > I had to do this slightly differently, but got it to work with > fakefs-0.2.1. Fixed in git. > > Cheers, > David > > > You can use include, too: > > module SpecHelpers > def self.extended(example_group) > example_group.use_fakefs(example_group) > end > > def self.included(example_group) > example_group.extend self > end > .. > end >That''s exactly what I did :) http://github.com/dchelimsky/rspec/commit/65485d8be96cd0cb474dc29b6778180349c2d8ee Cheers, David> > Scott > > > > >> >> >> On Nov 8, 3:30 pm, David Chelimsky <dchelim... at gmail.com> wrote: >> > On Sun, Nov 8, 2009 at 2:35 AM, Conrad Taylor <conra... at gmail.com> >> wrote: >> > > David, I''m still seeing the issue. Thus, here''s a transcript of my >> > > activity: >> > >> > >http://pastie.org/688639 >> > >> > $ gem which fakefs >> > (checking gem bmabey-fakefs-0.1.1.1 for fakefs) >> > >> /Users/david/.rvm/gems/ruby/1.9.1/gems/bmabey-fakefs-0.1.1.1/lib/fakefs.rb >> > >> > What version of fakefs are you using? >> > >> > >> > >> > > -Conrad >> > >> > > On Nov 4, 2:28 pm, David Chelimsky <dchelim... at gmail.com> wrote: >> > > > On Tue, Nov 3, 2009 at 7:25 AM, Conrad Taylor <conra... at gmail.com> >> > > wrote: >> > > > > Hi, ''rake spec'' failed to run on Ruby 1.9.1p243 and RSpec 1.2.9. >> > >> > > > Hi Conrad, >> > >> > > > If this was a problem in the gem, it is now fixed: >> > >> > > > $ rvm 1.9.1 >> > > > $ which ruby >> > > > /Users/david/.rvm/ruby-1.9.1-p243/bin/ruby >> > > > $ rake spec >> > > > ... >> > > > 1522 examples, 0 failures, 2 pending >> > >> > > > Cheers, >> > > > David >> > >> > > > > I''m >> > > > > getting the following error message when I run the specs: >> > >> > > > > /opt/local/lib/ruby/gems/1.9.1/gems/rspec-1.2.9/spec/spec/runner/ >> > > > > option_parser_spec.rb:21:in `block (2 levels) in <top >> (required)>'': >> > > > > wrong number of arguments (0 for 1) (ArgumentError) >> > >> > > > > After analyzing the error message, it appears that "use_fakefs" >> method >> > > > > on lines 21 and 522 of the >> > >> > > > > option_parser_spec.rb >> > >> > > > > should take an argument. >> > >> > > > > -Conrad >> > >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091123/bf5ccd6f/attachment.html>
Scott Taylor
2009-Nov-24 04:37 UTC
[rspec-users] Error executing specs using Ruby 1.9.1p243 and RSpec 1.2.9
On Nov 23, 2009, at 11:12 PM, David Chelimsky wrote:> > > On Mon, Nov 23, 2009 at 9:36 PM, Scott Taylor <scott at railsnewbie.com> wrote: > > On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote: > >> On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru <dumbogdan at gmail.com> wrote: >> The syntax for use_fakefs changed in version 0.2.1 and the fixtures >> for rspec are generating errors, but it can be solved easily. >> Have to change ... >> describe "smth" do >> extend FakeFS::SpecHelpers >> use_fakefs >> ... >> end >> To... >> extend FakeFS::SpecHelpers >> use_fakefs describe "smth" do ... end >> >> As it seems the use_fakefs method now takes the describe block as a >> parameter and thus the error regarding the wrong number of parameters. >> >> I had to do this slightly differently, but got it to work with fakefs-0.2.1. Fixed in git. >> >> Cheers, >> David > > You can use include, too: > > module SpecHelpers > def self.extended(example_group) > example_group.use_fakefs(example_group) > end > > def self.included(example_group) > example_group.extend self > end > .. > end > > That''s exactly what I did :) > > http://github.com/dchelimsky/rspec/commit/65485d8be96cd0cb474dc29b6778180349c2d8eeHadn''t realized the docs were wrong in the README. Now they are updated: http://github.com/defunkt/fakefs/commit/ceffec3023a2c790cd567275168ed6d6e5bf4ba9 Thanks for the heads up. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091123/7c79ae24/attachment.html>