Just to be clear, this is how the action looks:
def download
log = ActivityLog.find(params[:id])
if log
send_file log.path
else
flash[:notice] = _("Log file \"#{params[:id]}\" was not found.")
redirect_to :action => 'index'
end
end
Vit
___
On Mon, Feb 23, 2009 at 3:36 AM, Phlip wrote:
> Yi Wen wrote:
>
>> I totally agree with you on this. I have a feeling a lot of people kind of
>> use cucumber as a sexy way for doing waterfall.
>
> "Storytests" are very well represented in the Agile development community in
> general. Cucumber is a
Let me try...
Thanks for your reply.
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Yi Wen wrote:
yeah, you guys are probably right on this. I was just over stating. :)
Ah, but Waterfall is indeed like the Emissaries of the Shadow. If you defeat one
of them, in one form, another one will always appear, take shape, and grow...
I myself have heard well-meaning product manage
yeah, you guys are probably right on this. I was just over stating. :)
Yi
On Sun, Feb 22, 2009 at 8:36 PM, Phlip wrote:
> Yi Wen wrote:
>
> I totally agree with you on this. I have a feeling a lot of people kind of
>> use cucumber as a sexy way for doing waterfall.
>>
>
> "Storytests" are very
Yi Wen wrote:
I totally agree with you on this. I have a feeling a lot of people kind
of use cucumber as a sexy way for doing waterfall.
"Storytests" are very well represented in the Agile development community in
general. Cucumber is a (slam-dunk) reinterpretation of Ward Cunningham's FIT
c
Wait for an hour before I can checkin something is still too long for me.
I'd like to checkin every couple minutes most of time.
But I think to make each step just pending first and then make it green when
I finish implementation for the step makes sense. I probably will still use
unit tests passi
On Sun, Feb 22, 2009 at 6:14 PM, Yi Wen wrote:
> I totally agree with you on this. I have a feeling a lot of people kind of
> use cucumber as a sexy way for doing waterfall.
That may be so, but one view of agile is that each iteration is a
mini-waterfall. BDD suggests that we *should* define all
I totally agree with you on this. I have a feeling a lot of people kind of
use cucumber as a sexy way for doing waterfall.
On Sun, Feb 22, 2009 at 5:18 PM, Mark Wilden wrote:
> On Sun, Feb 22, 2009 at 1:36 PM, aslak hellesoy
> wrote:
> > You don't have to write all
> > scenarios when you start
On Sun, Feb 22, 2009 at 1:36 PM, aslak hellesoy
wrote:
> You don't have to write all
> scenarios when you start working on a feature. I recommend you never
> have more than one yellow scenario at a time.
Whereas I use scenarios as a "to-do" list. I'll keep adding them as I
think of them or as the
On Sun, Feb 22, 2009 at 8:47 PM, Yi Wen wrote:
> The rhythm for wrking with cucumber advertised by http://cukes.info/ is to
> write tests that fails first, then code that fixes it. Now my question is,
> what is the implication when combine this with Continuous Integration?
>
* Nobody checks in co
On Sun, Feb 22, 2009 at 11:47 AM, Yi Wen wrote:
> Cucumber, as far as my understanding goes, works on feature level. It could
> take people days to finish a cucumber feature. In the meantime, the cucumber
> test remains broken. What do we do then? We cannot check in any code because
> that'll bre
On Sun, Feb 22, 2009 at 9:19 PM, Mark Wilden wrote:
> On Sun, Feb 22, 2009 at 2:03 AM, Aslak Hellesøy
> wrote:
>> Den 22. feb.. 2009 kl. 02.29 skrev Mark Wilden :
>>
>>> I'm trying to set a specific host that all my Cucumber steps should
>>> use. Putting 'host! "beta.rupture.local"' in Before in
On Sun, Feb 22, 2009 at 2:47 PM, Yi Wen wrote:
> The rhythm for wrking with cucumber advertised by http://cukes.info/ is to
> write tests that fails first, then code that fixes it. Now my question is,
> what is the implication when combine this with Continuous Integration?
>
> We all know when we
Hello all,
Is there some best practice how to test Rails controller action which
is using send_file method? Could you help me please?
Vit
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Sun, Feb 22, 2009 at 2:03 AM, Aslak Hellesøy
wrote:
> Den 22. feb.. 2009 kl. 02.29 skrev Mark Wilden :
>
>> I'm trying to set a specific host that all my Cucumber steps should
>> use. Putting 'host! "beta.rupture.local"' in Before in env.rb doesn't
>> produce any errors, but it doesn't seem to
The rhythm for wrking with cucumber advertised by http://cukes.info/ is to
write tests that fails first, then code that fixes it. Now my question is,
what is the implication when combine this with Continuous Integration?
We all know when we do TDD/BDD in unit level, one test can be fixed fairly
qu
cool, I'll give that a try in short
thanks
joaquin
2009/2/22, aslak hellesoy :
> On Sun, Feb 22, 2009 at 1:42 PM, Joaquin Rivera Padron
> wrote:
>> hey Kaleem,
>> I am myself no expert on w$ but the line throwing the error is
>> def self.run_server
>> IO.popen("jruby #{__FILE__}", 'r+')
>
On Sat, Feb 21, 2009 at 12:33 AM, Ben Mabey wrote:
> Stephen Eley wrote:
>>
>> On Fri, Feb 20, 2009 at 2:33 PM, Peter Jaros
>> wrote:
>>
>>>
>>> Other than that, I can't think of a way to do it short of writing your
>>> own autospec style and overriding the #run algorithm.
>>>
>>
>> Which is almo
On Sun, Feb 22, 2009 at 1:42 PM, Joaquin Rivera Padron
wrote:
> hey Kaleem,
> I am myself no expert on w$ but the line throwing the error is
> def self.run_server
> IO.popen("jruby #{__FILE__}", 'r+')
When forking a new ruby interpreter, always use rbconfig:
require 'rbconfig'
ruby = File.
On Fri, Feb 20, 2009 at 4:35 AM, Juanma Cervera wrote:
> David,
>
> I have an error when trying to run autospec.
> It works when I run 'rake spec'
>
> I don know why it is still using the rspec-1.1.12 gem.
>
>
> /usr/lib/ruby/gems/1.8/gems/dchelimsky-rspec-1.1.99.7/lib/spec/autorun.rb:3:
> undefin
hey there,
I have Cucumber running Webrat and Celerity (using culerity) together, check
it out in the sample project:
http://github.com/joahking/cukes/tree/masters
It's a first try, but it runs. I get them by following a feature directory
structure similar to the suggested in
http://wiki.github.co
> Rails' HTML error page. It comes up both in my browser (presumably
> save_and_open_page doing its thing) and the same HTML is dumped to the
> console.
>
> Can anyone else confirm that with latest Cucumber and Webrat they
> *don't* get this behaviour?
I do see this behavior and it is specifical
hey Kaleem,
I am myself no expert on w$ but the line throwing the error is
def self.run_server
IO.popen("jruby #{__FILE__}", 'r+')
end
are you able to run popen calls in w$ ? try your irb and see, if not maybe
there's some w$ expert who can help
hope that helps
joaquin
Hi All,
I need your guide on an issue.
My Environment:
Window xp , Rails 2.2.2, Rspec-rails 1.1.11, Rspec 1.1.11, Cucmber ,
Webrat,Culerity
I installed the jruby, sets its path in environment. It shows me Version
of jruby also.
Now the problem is when before installing
langalex-culerity(http:
Den 22. feb.. 2009 kl. 02.29 skrev Mark Wilden :
I'm trying to set a specific host that all my Cucumber steps should
use. Putting 'host! "beta.rupture.local"' in Before in env.rb doesn't
produce any errors, but it doesn't seem to be making the next request
use that host, either.
If I explicit
26 matches
Mail list logo