[rspec-users] Attachment-fu + Story Runner
Joe Van Dyk
joe at pinkpucker.net
Fri Apr 4 19:10:59 EDT 2008
On Fri, Mar 21, 2008 at 5:46 AM, David Chelimsky <dchelimsky at gmail.com> wrote:
>
> On Fri, Mar 21, 2008 at 1:35 AM, Joe Van Dyk <joe at pinkpucker.net> wrote:
> > On Thu, Mar 20, 2008 at 3:34 AM, Rick DeNatale <rick.denatale at gmail.com> wrote:
> > > On 3/20/08, Joe Van Dyk <joe at pinkpucker.net> wrote:
> > > > What was the resolution on this? How do you people test uploads with
> > > > rspec stories?
> > >
> > > I submitted a Rails patch to address the underlying problem
> > > http://dev.rubyonrails.org/ticket/11091
> > >
> > > It got in as changeset 8978 and should be in edge rails.
> >
> > Would it be worth it to monkeypatch that patch into rspec?
>
> Why would we do that? It's already in edge rails.
Because I can't upgrade to edge rails. And I want to be able to test
file uploads.
I've applied the 8978 changeset to my stable rails -- but I'm still
unsure of how to test file uploads in the context of a rspec story.
Normally, I'd use fixture_file_upload, but that method doesn't seem to
be available in rspec. Do I need to do anything special?
Is anyone testing file uploads with rspec stories?
More information about the rspec-users
mailing list