Re: [rspec-users] Cucumber failing with 'uninitialized constant Spec::Ruby'

2009-03-18 Thread Matt Patterson
On 18 Mar 2009, at 21:07, David Chelimsky wrote: On Wed, Mar 18, 2009 at 3:54 PM, Matt Patterson wrote: I've just upgraded RSpec to 1.2 on a Rails 2.2.2 app. rake features fails with the following error: /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:442

Re: [rspec-users] [rspec] Stubbing partials in view specs

2009-03-18 Thread Zach Dennis
On Wed, Mar 18, 2009 at 6:18 AM, Evgeny Bogdanov wrote: > Hello, > I have a problem similar to one mentioned in this post. > I call a partial inside another partial. > _mother.haml contains: > render :partial => "children/child" > > In mother_spec.rb file I am trying to stub the render call. > Her

Re: [rspec-users] mock_model with Rspec/Rspec-rails 1.2 and Rails 2.3 [re : Pat & David)

2009-03-18 Thread Tom Meier
Hi, Thanks for the assistance, I overlooked the obvious with the '=' in the error... After reviewing the error i started a new project and tried to replicate to show you the steps, but everything works as it should (sorry - i should have completed that already before contacting you). Af

Re: [rspec-users] [rspec] Stubbing partials in view specs

2009-03-18 Thread Zach Dennis
On Wed, Mar 18, 2009 at 4:35 PM, Nick Hoffman wrote: > Hey there Evgeny. My response is inline. > >> I call a partial inside another partial. >> _mother.haml contains: >> render :partial => "children/child" > >> In mother_spec.rb file I am trying to stub the render call. >> Here is a working versi

Re: [rspec-users] ANN Cucumber 0.2.0

2009-03-18 Thread aslak hellesoy
On Wed, Mar 18, 2009 at 4:13 PM, Joseph Wilk wrote: > David Chelimsky wrote: > >> 2009/3/18 aslak hellesoy : >> >> >>> I'm happy to announce the release of Cucumber 0.2.0. >>> >>> There are a some really exciting new features in this release. Some of >>> the >>> ones I find most valuable are: >>>

Re: [rspec-users] Cucumber failing with 'uninitialized constant Spec::Ruby'

2009-03-18 Thread David Chelimsky
On Wed, Mar 18, 2009 at 3:54 PM, Matt Patterson wrote: > I've just upgraded RSpec to 1.2 on a Rails 2.2.2 app. > > rake features fails with the following error: > > /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:442:in > `load_missing_constant': uninitialized co

[rspec-users] Problem spec'ing ActionMailer with attachment, body not getting rendered.

2009-03-18 Thread Rick DeNatale
I've got a simple ActionMailer::Base subclass: class InfoMailer < ActionMailer::Base def info(user, zip_name) recipients user.email subject "Requested Info" attachment(:content_type => "application/zip", :filename => zip_name, :body => File.read(zip_

[rspec-users] Cucumber failing with 'uninitialized constant Spec::Ruby'

2009-03-18 Thread Matt Patterson
I've just upgraded RSpec to 1.2 on a Rails 2.2.2 app. rake features fails with the following error: /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/ dependencies.rb:442:in `load_missing_constant': uninitialized constant Spec::Ruby (NameError) from /Library/Ruby/Gems/1.8/ge

Re: [rspec-users] [rspec] Stubbing partials in view specs

2009-03-18 Thread Nick Hoffman
Hey there Evgeny. My response is inline. > I call a partial inside another partial. > _mother.haml contains: > render :partial => "children/child" > In mother_spec.rb file I am trying to stub the render call. > Here is a working version: > = >    template.should_receive(:render) >    

[rspec-users] extra spec

2009-03-18 Thread Yi
Hi, If I do something like this: before(:each) do @test_class = Class.new do blahblah end end I will get one extra test shown: MyTest - test_class Where did I go wrong for this? Thanks Yi -- http://yiwenandsoftware.wordpress.com

Re: [rspec-users] Problem spec'ing ActionMailer with attachment, body not getting rendered.

2009-03-18 Thread Rick DeNatale
On Wed, Mar 18, 2009 at 4:28 PM, Rick DeNatale wrote: > I've got a simple ActionMailer::Base subclass: > class InfoMailer < ActionMailer::Base > > def info(user, zip_name) > recipients user.email > subject "Requested Info" > attachment(:content_type => "application/zip", >

[rspec-users] Printing scenario count, pass and fail rather than steps

2009-03-18 Thread Emmanuel Pinault
Is there a way to do that using some options? I had to override the default reporting in 0.1.16 and prior.. But now with 0.2 the formatter look different and was wondering if this is something already possilbe or if I need to still create my custom report Thanks Emmanuel __

Re: [rspec-users] ANN Cucumber 0.2.0

2009-03-18 Thread Joaquin Rivera Padron
> > Full release notes are available at > http://github.com/aslakhellesoy/cucumber/blob/d0555e4ca8a133f020efefd5a755da04bde3f57d/History.txt > > (::) Aslak (::) wow! amazing how much the cukes have accomplished, keep on the good work cheers, joaquin -- www.least-significant-bit.com __

Re: [rspec-users] ANN Cucumber 0.2.0

2009-03-18 Thread Joseph Wilk
David Chelimsky wrote: 2009/3/18 aslak hellesoy : I'm happy to announce the release of Cucumber 0.2.0. There are a some really exciting new features in this release. Some of the ones I find most valuable are: * tags * better output * autoformatting of features * better i18n * Ruby 1.9 suppor

Re: [rspec-users] ANN Cucumber 0.2.0

2009-03-18 Thread Emmanuel Pinault
Great! Is there section for the new hook on reporting? I used the old reporting to customized some of our HTML reports and wonder if you have the new hooks documented somewhere? Also what is the rerun formatter? Thanks Emmanuel On Mar 18, 2009, at 12:21 PM, David Chelimsky wrote: 2009/3

Re: [rspec-users] ANN Cucumber 0.2.0

2009-03-18 Thread David Chelimsky
2009/3/18 aslak hellesoy : > I'm happy to announce the release of Cucumber 0.2.0. > > There are a some really exciting new features in this release. Some of the > ones I find most valuable are: > * tags > * better output > * autoformatting of features > * better i18n > * Ruby 1.9 support > * backgr

[rspec-users] ANN Cucumber 0.2.0

2009-03-18 Thread aslak hellesoy
I'm happy to announce the release of Cucumber 0.2.0. There are a some really exciting new features in this release. Some of the ones I find most valuable are: * tags * better output * autoformatting of features * better i18n * Ruby 1.9 support * background * guess mode Full release notes are avai

Re: [rspec-users] mock_model with Rspec/Rspec-rails 1.2 and Rails 2.3

2009-03-18 Thread Pat Maddox
On Mar 17, 2009, at 11:37 PM, David Chelimsky wrote: 2009/3/18 Tom Meier : With the above settings when our specs run (while on rails 2.3 and rspec 1.2), the following error occurs : undefined method `mock_model=' for # The error says "mock_model=", which indicates that you're trying to s

Re: [rspec-users] Speccing module which should be included in controller

2009-03-18 Thread Pat Maddox
On Mar 18, 2009, at 5:03 AM, Harm wrote: This works by the grace that my routes file has a fallback map.connect ':controller/:action/:id'. I never use that fallback only for this particular test. Is there anyway to get rid of this entry in my routes.rb? map.connect ':controller/:action/:id' if

Re: [rspec-users] Speccing module which should be included in controller

2009-03-18 Thread Matt Wynne
On 18 Mar 2009, at 12:03, Harm wrote: Dear all, I have a module ApiAccessControl which is included in all controllers which deal with the API. It sees if the users is valid, logs etc etc. I want to see if this module does what it is supposed to but I dont want to test that in every single con

[rspec-users] Speccing module which should be included in controller

2009-03-18 Thread Harm
Dear all, I have a module ApiAccessControl which is included in all controllers which deal with the API. It sees if the users is valid, logs etc etc. I want to see if this module does what it is supposed to but I dont want to test that in every single controller dealing with the API. So I created

Re: [rspec-users] [rspec] Stubbing partials in view specs

2009-03-18 Thread Evgeny Bogdanov
Hello, I have a problem similar to one mentioned in this post. I call a partial inside another partial. _mother.haml contains: render :partial => "children/child" In mother_spec.rb file I am trying to stub the render call. Here is a working version: = template.should_receive(:rende