[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

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

2007-11-11 Thread Leslie Freeman
, 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. Then I generated an rspec_model for Asset

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

2007-11-10 Thread Leslie Freeman
insight as to why Test::Unit::TestCase.fixture_path is nil. Thanks, Les On Nov 9, 2007, at 8:25 AM, Leslie Freeman wrote: 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

[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

Re: [rspec-users] template.expects_render?

2007-09-08 Thread Leslie Freeman
/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 error on expects_render. I made sure I had the 1.0.8 gem

[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