Re: [rspec-users] Rspec-rails without ActiveRecord framework failure

2009-05-01 Thread Matt McNeil
David Chelimsky-2 wrote: > > > Can you please file a bug report at http://rspec.lighthouseapp.com? I > need to fix something else and do another rspec-rails release over the > weekend (before RC) and I'll fix this one in the same release. Don't > know about a workaround this minute, but when i

[rspec-users] Rspec-rails without ActiveRecord framework failure

2009-05-01 Thread Matt McNeil
Hello, Our project is not using ActiveRecord and so I've removed database.yml and added this line to the environment.rb file: config.frameworks -= [ :active_record ] Although I see in the rspec-rails source several places where the existence of ActiveRecord::Base is checked, I am still getting

[rspec-users] undefined method `white_list_sanitizer'

2008-11-18 Thread Matt McNeil
Hi there, After upgrading to the latest Rails RC (2.2.0) and rspec 1.1.11, I'm getting the following error in my specs (but not in the application itself): NoMethodError in 'ApplicationHelper#truncate_text truncates text to 270 characters' undefined method `white_list_sanitizer' for Spec::Rails::

Re: [rspec-users] controller filters running twice in 1.1.4?

2008-06-04 Thread Matt McNeil
Pat Maddox wrote: > > On Tue, Jun 3, 2008 at 5:31 PM, Matt McNeil <[EMAIL PROTECTED]> wrote: >> >> since upgrading to 1.1.4 (I had been running without issue on a git >> snapshot), I'm noticing that my filter actions initiated from >> application.rb

Re: [rspec-users] controller filters running twice in 1.1.4?

2008-06-03 Thread Matt McNeil
Pat Maddox wrote: > > On Tue, Jun 3, 2008 at 5:31 PM, Matt McNeil <[EMAIL PROTECTED]> wrote: >> >> since upgrading to 1.1.4 (I had been running without issue on a git >> snapshot), I'm noticing that my filter actions initiated from >> application.rb

[rspec-users] controller filters running twice in 1.1.4?

2008-06-03 Thread Matt McNeil
since upgrading to 1.1.4 (I had been running without issue on a git snapshot), I'm noticing that my filter actions initiated from application.rb seem to be running twice. I created a test rails project with the rspec scaffold and am also seeing the same behavior here too. Adding this code to app

[rspec-users] specifying output of render call

2008-05-05 Thread Matt McNeil
Hello again, First of all, thanks much for everyone's input on my question last week about spec'ing an invocation of super. Here's another question that seems resistant to my Google searching: With this helper method (defined in a module and included in Rails controllers): def render_rjs_red

[rspec-users] spec'ing calls to super (or other Ruby keywords)

2008-05-02 Thread Matt McNeil
Hi there, How does one spec an invocation of a Ruby keyword, such as super in this case? class User < ActiveResource::Base # faking the ActiveRecord before/after_save observers def save super UserMailer.deliver_activation(self) if recently_activated? end end Does the solution look

[rspec-users] Spec'ing controller macros

2008-04-29 Thread Matt McNeil
Hi, (This is my first post after months of appreciative lurking...) I'm trying to spec the following conditional controller macro: class ApplicationController < ActionController::Base # turn off session management for robots session :off, :if => lambda {|req| req.user_agent =~ /(Google|Slur