[rspec-users] writing specs for Padrino using RSpec

2011-01-19 Thread Raghu Somaraju
Hi I am new to RSpec and just started getting introduced to Padrino. I need to write specs for developing a project using Padrino (or Sinatra). Has anyone written such specs? If so can you share it on the public domain (like github or something like that) so that I can look at them and write my

Re: [rspec-users] Problem with output at running specs

2011-01-19 Thread Rubén Dávila
I've found the culprit!. The method add_index was redefined in an initializer and it was writing to the standard output instead of logger. Very thanks! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-use

Re: [rspec-users] Problem with output at running specs

2011-01-19 Thread rdavila
I've tried reconfiguring rspec from scratch and I get the same problem. I've too many hours trying to resolve this issue, please give me some hint. Here is the output again: http://pastie.org/1478603 Thanks! ___ rspec-users mailing list rspec-users@ruby

Re: [rspec-users] undefined method `mock' for #

2011-01-19 Thread Wilker
Yeah, that is right, because mocks live on a space that is different for each spec (the MockSpace), this is why you can't create it in before :all ;) --- Wilker Lúcio http://about.me/wilkerlucio/bio Kajabi Consultant +55 81 82556600 On Wed, Jan 19, 2011 at 5:54 PM, Dan F. wrote: > Please see:

[rspec-users] undefined method `mock' for #

2011-01-19 Thread Dan F.
Please see: https://github.com/rspec/rspec-rails/issues/closed#issue/279 You can't create mocks in before(:all), but it will work in before(:each) -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://

Re: [rspec-users] major release required?

2011-01-19 Thread Rick DeNatale
On Tue, Jan 18, 2011 at 1:31 PM, David Chelimsky wrote: > > On Jan 18, 2011, at 11:08 AM, Rick DeNatale wrote: > >> On Tue, Jan 18, 2011 at 9:15 AM, David Chelimsky >> wrote: >>> Hi all, >>> >>> Since the release of rspec-2.0, I've been following Rubygems' rational >>> versioning [1] as closely

[rspec-users] capturing screenshots on test failures

2011-01-19 Thread vishnu
Hi I'm using rspec to run my functional tests and I'd like to add a hook to be executed every time a spec fails so that I can capture a screenshot. What's the best way to do this? Also I'd like to name my screenshot uniquely by the name of the spec. Does it make sense to use self.example.full_de