On Fri, 2009-06-05 at 22:40 -0500, David Chelimsky wrote:
There is no support for rendering in helper specs as of yet. Please
file a feature request if you think there should be. I have,
personally, never rendered from a helper. Anybody else?
We do this for example to render a set of
On Thu, 2008-10-30 at 14:47 +0800, Leon Du wrote:
The spec
it should expose a newly created logo as @logo do
On Mon, 2008-10-27 at 15:54 +0100, Juanma Cervera wrote:
I have a problem trying to use cucumber with webrat.
I thought I could use the gems versions of rspec, rspec-rails, cucumber
and webrat, in fact I think that I could manage to do it two weeks ago,
but now that I updated the versions of
On Fri, 2008-06-06 at 08:12 -0500, David Chelimsky wrote:
On Jun 6, 2008, at 12:42 AM, Hans de Graaff wrote:
I'm not sure if this is the right fix, as it may also be a bug that
the
last semi-colon is missing from the backtrace list?
That could be from different versions of Ruby. I'm
On Fri, 2008-04-11 at 17:16 +0200, Andy Orahood wrote:
When I run autotest it works fine the first time, generating the command
line:
/usr/bin/ruby1.8 -S script/spec -O spec/spec.opts
spec/models/timespan_spec.rb spec/models/article_spec.rb ... rest of my
spec files
and all my specs get
On Tue, 2008-04-01 at 08:48 +0100, Ashley Moran wrote:
Hmm, exact same revision as me. Are we the only one s having
problems? I've also noticed errors along the lines of
ActionController not found and expected XXX to respond to
respond_to? (or something - that from the developer that sits
On Tue, 2008-02-05 at 23:50 -0500, Will Schenk wrote:
This is both running the file directly or using script/spec. If I
leave the spec file as is, and I comment out a line
@order.send_order_to_google_checkout in the _controller_ then it runs
fine, i.e. it gets to the fail statement.
Since
On Sun, 2007-11-11 at 17:21 +0100, aslak hellesoy wrote:
I think the simplest and best thing here would be a pure browser
solution with autorefresh.
It should only be a matter of tweaking the HTML output a little to:
* Implement autorefresh. Ajax based would require a lite server
(webrick).
You are trying to test a lot of things at the same time, which is one of
the reasons that it is now hard to diagnose a problem.
I would tackle this by
a) writing a separate spec for the partial _question_for_candidate
b) write a separate spec for the helper that renders the question
b) in the
On Fri, 2007-11-02 at 15:58 +0100, Chris Olsen wrote:
Hans de Graaff wrote:
Looks like you still have a (possibly generated?) spec for this helper.
Kind regards,
Hans
I do, but the issue is that it requires the
app/helpers/addresses_helper.rb file, which is that one that I am
the HTML summary page, but apparently the
latest version of rexml no longer allows this.
I haven't had time to figure out if this change in rexml is intentional
or not, and thus whether rexml or rcov needs fixing.
Kind regards,
Hans de Graaff
signature.asc
Description: This is a digitally
On Fri, 2007-11-02 at 00:39 +0100, Chris Olsen wrote:
A stacktrace would help
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S
script/spec -O spec/spec.opts spec/views/addresses/show.rhtml_spec.rb
spec/helpers/addresses_helper_spec.rb
Looks like you still have a
On Fri, 2007-10-12 at 12:47 -0400, Jonathan Linowes wrote:
that works for you?
I'm basically doing the same thing but the
render /pages/_page_menu.html.erb, :locals = { :pages = @foo }
render :partial = 'pages/page_menu', :locals = {:pages = @foo}
Note the :partial.
Kind regards,
Hans
On Fri, 2007-10-12 at 10:33 -0400, Jonathan Linowes wrote:
hiya, in specing a partial, how can i assign a local var that is
normally passed via :locals ? i tried adding :locals = to the render
call but that doesnt seem to take
it 'should include :var'
render :partial = 'your/partial',
On Fri, 2007-09-14 at 17:51 -0400, sinclair bain wrote:
def update
...
if @config.update_attributes ( params[:new_config] )
redirect_to :action = :index
else
render :action = :edit, :id = params[:id] # this line
here
end
...
end
it 'should render
On Sat, 2007-08-25 at 00:01 -0700, David Green wrote:
I wasn't testing my views at all, instead relying on integrate_views to
catch any problems. This time round I wrote view specs, which is a little
more work but testing only one MVC aspect in isolation really makes things
simpler. I realise
16 matches
Mail list logo