[rspec-users] template.expects_render?

2007-09-08 Thread Leslie Freeman
Hi All, I'm trying to make use of template.expects_render, is outlined in David's post(http://blog.davidchelimsky.net/articles/2007/06/28/ template-expects_render). I get an undefined method error on expects_render. I made sure I had the 1.0.8 gem as well as reinstalling the plugin and redoi

Re: [rspec-users] template.expects_render?

2007-09-08 Thread Leslie Freeman
gt; On 9/8/07, Leslie Freeman <[EMAIL PROTECTED]> wrote: >> Hi All, >> I'm trying to make use of template.expects_render, is outlined in >> David's post(http://blog.davidchelimsky.net/articles/2007/06/28/ >> template-expects_render). I get an undefined method e

[rspec-users] Writing specs for scriptaculous helper

2007-09-08 Thread Leslie Freeman
I'm trying to get full specing of my views, which involve calling some Scriptaculous helpers in the views themselves. For instance, I have a div containing a bunch of thumbnails which I'm going to make sortable with sortable_element. I'm trying to figure out a good way to write a spec for t

[rspec-users] Examples of writing controller specs that use authentication

2007-10-26 Thread Leslie Freeman
Hello, I'm working on specs for a controller that handles authentication using the restful_authentication plugin. I'm trying to find a resource (tutorial or examples, if possible) about the best way to go about writing mocks and specs to make sure that things like my before_filters are work

[rspec-users] fixture_file_upload and edge rspec?

2007-11-08 Thread Leslie Freeman
Hi all, I had some specs that were using fixture_file_upload that were passing just fine. Then I froze edge rails to get some 2.0 functionality, then a I upgraded to trunk rspec to deal with uninitialized constant ActionView::Helpers::JavaScriptMacrosHelper After a couple other of tribulation

Re: [rspec-users] fixture_file_upload and edge rspec?

2007-11-09 Thread Leslie Freeman
On Nov 9, 2007, at 5:09 AM, David Chelimsky wrote: > On Nov 8, 2007 11:25 PM, Leslie Freeman <[EMAIL PROTECTED]> > wrote: >> Hi all, >> I had some specs that were using fixture_file_upload that were >> passing just fine. Then I froze edge rails to get some

Re: [rspec-users] fixture_file_upload and edge rspec?

2007-11-10 Thread Leslie Freeman
lper does have this line: config.fixture_path = RAILS_ROOT + '/spec/fixtures/' which seems right. I am hoping someone that knows more about the inner gears of rspec has some insight as to why Test::Unit::TestCase.fixture_path is nil. Thanks, Les On Nov 9, 2007, at 8:25 AM, Leslie Fr

Re: [rspec-users] fixture_file_upload and edge rspec?

2007-11-11 Thread Leslie Freeman
007, at 6:51 AM, David Chelimsky wrote: > On Nov 10, 2007 11:25 PM, Leslie Freeman <[EMAIL PROTECTED]> > wrote: >> To follow up on this a little more, I created a new project, froze >> rails to edge (REVISION_8125), and installed rspec/rspec on rails >> from trunk. T

Re: [rspec-users] fixture_file_upload and edge rspec?

2007-11-12 Thread Leslie Freeman
On Nov 11, 2007, at 5:40 PM, Brian Takita wrote: > On Nov 11, 2007 12:36 PM, Brian Takita <[EMAIL PROTECTED]> wrote: >> On Nov 11, 2007 8:29 AM, Leslie Freeman <[EMAIL PROTECTED]> wrote: >>> Slowly digging to the bottom of this one. >>> >>> If

[rspec-users] Writing specs for a plugin module for ActionController

2008-07-31 Thread Leslie Freeman
Hello, I'm trying to spec a plugin that includes a module that adds functionality to ActionController below is what I've come up with: # vendor/plugins/custom_attribute_fu/spec/active_record_spec.rb require File.dirname(__FILE__) + '/spec_helper' class TestPerson < ActiveRecord::Base end cla