On 5 Jun 2009, at 02:54, amkirwan wrote:
I found the answer to my own question. Just needed to use image_path
("logo.jpg"). Incase anyone else has this is I hope this helps.
response.should have_selector("#logo", :src => image_path("logo.jpg"))
I'd have thought there's a marginal risk (if yo
There is probably an easy solution to this but I am new to rails and
rspec and after searching I cannot seem to find an answer. When I try
the following code:
response.should have_selector("#logo", :src => "/images/logo.jpg")
it fails because rails appends a ? and timestamp to the end of the
im
I found the answer to my own question. Just needed to use image_path
("logo.jpg"). Incase anyone else has this is I hope this helps.
response.should have_selector("#logo", :src => image_path("logo.jpg"))
On Jun 4, 9:19 pm, amkirwan wrote:
> when I run the following matcher bellow it fails becaus
I have a helper method that does a "render :partial". The method works fine
within the app (Rails 2.3.2). In rspec (1.2.6) I get an error ("Missing
template /comments/_comment.erb in view path"
It seems that rspec when running helper tests doesn't set the view_path so
rails doens't know where to
when I run the following matcher bellow it fails because rails adds
the timestamp after the file name. I've looked around but have not
found anyone else having this problem. I am new to rails and rspec so
maybe I am completely missing something obvious.
response.should have_selector("#logo", :src
On Wed, Jun 3, 2009 at 10:46 AM, Sebastian W. wrote:
> Hello all,
> Is there a way to explicitly tell a mock to expect no messages and give
> an error if it does? I believe this is the default behavior, but thought
> it might be nice for code readers to see.
Document it in the mock object's name.
I'm in the process of converting an application from an older version of
rails to rails 2.3.2, and I'm running into some problems with my specs
There's a part of the application that references the current session ID;
non-optional there. It's referenced in a before filter in
application_controlle
Hi Evgeny,
You didn't include the error message in your email, so this is just a guess,
but from your example, it looks like you need to specify :viewtype in your
call to post, like so:
post :create, :viewtype => 'context'
The HTTP verb methods require you to specify the route parameters in orde
Hunt Jon wrote:
Thanks Scott.
I don't get what happens if I add --drb
to spec/spec.opts
files.
If you add --drb to your spec.opts (or you run script/spec --drb
spec/my_spec.rb) - you will run your specs through the spec server.
Without --drb, rails will load up in a fresh process.
The
Thanks Scott.
I don't get what happens if I add --drb
to spec/spec.opts
files.
Can anybody explain to me, please?
On Thu, Jun 4, 2009 at 3:24 PM, Scott Taylor wrote:
> Hunt Jon wrote:
>>
>> What's the difference between spec:server and autospec?
>>
>>
>
> I wouldn't recommend using spec server
10 matches
Mail list logo