On Aug 14, 2008, at 3:42 AM, Andy Croll wrote:
I'm using a call to wget to download a large datafile (multiple
megabytes) having assumed this will be quicker than using open-uri.
How can I spec the behaviour? Ideally I'd also like to not be hitting
the internet every time I test!
in
we people are new team for ruby. we trying to put multithreading in our
code. how is it possible? we want to read a message from queue and
process that message parellaly and finally insert the message to the DB.
Can you give me the Idea please.
we want to process 7000 to 1 message and store
On 8 Aug., 19:11, Mark Wilden [EMAIL PROTECTED] wrote:
I've been using RSpactor (the gem version, not the GUI) fairly happily for a
month or so. However, when trying the GUI version out, it became clear that
RSpactor loads things differently than 'rake spec'. Today, using the gem
version, I
On 8 Aug., 17:55, Jay Levitt [EMAIL PROTECTED] wrote:
Failing specs do show up as red, but passing ones show up as black in the
lefthand drawer (though the bar is green in the main display pane) - known
bug?
No its not a bug. The lefthand drawer shows all your spec files. The
right, main view
Hi,
I am currently using the story runner HTML
ruby aut.rb -fh:C:\C:\rspec_reports\aut.htm
Is it possible to also produce the traditional Rspec HTML reports
through Story Runner as well
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
On Thu, Aug 14, 2008 at 4:47 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi,
I am currently using the story runner HTML
ruby aut.rb -fh:C:\C:\rspec_reports\aut.htm
Is it possible to also produce the traditional Rspec HTML reports
through Story Runner as well
There is no formatter for that,
Hi David,
2008/8/14 David Chelimsky [EMAIL PROTECTED]:
There is no formatter for that, but you could write one.
OK. Initially I think I will look into a simple dashboard that will
link to each of the Story HTML files.
Aidy
___
rspec-users mailing
Hi there,
I'm trying to write a spec for and existing model. It has an
after_create callback which I'd like to stub out. Any quick solution to
this?
Many thanks
Rob Lacey
___
rspec-users mailing list
rspec-users@rubyforge.org
Is this expected behaviour?
On Aug 8, 9:46 pm, J2M [EMAIL PROTECTED] wrote:
My spec;
describe 'subnav rendering while logged in' do
before do
template.stub!(:logged_in?).and_return(true)
template.stub!
(:current_profile).at_least(:once).and_return(mock_profile)
end
El mié, 13 de ago de 2008, a las 07:11:49 -0600, Pat Maddox dijo:
On Wed, Aug 13, 2008 at 12:18 PM, Gaston Ramos [EMAIL PROTECTED] wrote:
Hi guys, I'm trying to run this story http://pastie.org/252361
You need to fully-qualify the class name, which is Spec::Story::StepGroup.
Although I'm
Hello to every one,
First of all, sorry if this message has already reached the list. I sent it
yesterday, but since today I don't see it in the archives, I'm resending it.
I'm writing an application and using rspec to test it. I like very much it's
html output, since it allows me to look at
I don't know about anyone else, but I find I'm far less likely to read short
snippets of code if I have to click links instead of just reading them
inline. Just my two sense.
///ark
___
rspec-users mailing list
rspec-users@rubyforge.org
On Thu, Aug 14, 2008 at 9:53 AM, Rob Lacey [EMAIL PROTECTED] wrote:
Hi there,
I'm trying to write a spec for and existing model. It has an after_create
callback which I'd like to stub out. Any quick solution to this?
My first question is why do you want to stub it out? My second
question is
Don't stub out callbacks, rather spec the behavior of the model,
which might mean stubbing out methods (in a different model?) called
by the callback.
On Aug 14, 2008, at 9:53 AM, Rob Lacey wrote:
Hi there,
I'm trying to write a spec for and existing model. It has an
after_create
Rob Lacey wrote:
Hi there,
I'm trying to write a spec for and existing model. It has an
after_create callback which I'd like to stub out. Any quick solution
to this?
Many thanks
Rob Lacey
___
rspec-users mailing list
rspec-users@rubyforge.org
Hello, I got an error when I run my spec test of a controlleur : the get
and post methodes are unknown. here is my test file :
##
setup_controller_spec.rb :
##
require File.dirname(__FILE__) + '/../spec_helper'
require #{LIB_DIR}/application
require #{LIB_DIR}/setups_controller
describe A
and, is it SetupController or SetupsController ?
On Aug 14, 2008, at 1:47 PM, David Chelimsky wrote:
On Thu, Aug 14, 2008 at 12:42 PM, [EMAIL PROTECTED] wrote:
Hello, I got an error when I run my spec test of a controlleur :
the get
and post methodes are unknown. here is my test file :
I have checked : I am in the RAILS_ROOT/spec/controllers directory
I have tried with the second solution, but the get and post methodes
remain undefined.
Could it be a version compatibility problem ?
I'm using rails 2.1.0, and the REL_1_1_3 for the rspec plugin.
What is the best version of rspec
and, is it SetupController or SetupsController ?
it's a SetupsController.
my controller file is RAILS_ROOT/app/controllers/setups_controller.rb
I have just tried with a setups_controller_spec.rb spec file, but the
undefined method remains
here is my new setups_controller_spec.rb file :
in
On Thu, Aug 14, 2008 at 2:24 PM, Ben Men [EMAIL PROTECTED] wrote:
Kamal Fariz wrote:
Can Story Runner run a specific scenario in a story? Like how Spec
Runner can just execute a particular example.
I realize this question is a little old, but I have exactly the same
need.
The only
On Thu, Aug 14, 2008 at 3:42 AM, Andy Croll [EMAIL PROTECTED] wrote:
I'm using a call to wget to download a large datafile (multiple
megabytes) having assumed this will be quicker than using open-uri.
How can I spec the behaviour? Ideally I'd also like to not be hitting
the internet every
Zach Dennis wrote:
That would be very difficult to do and to do well (with autotest or
RSpactor) since stories cover a complete vertical slice of the
application, and it'd be almost impossible to know what source file
(or method) affect will what stories.
Sure, I agree, but I think it would
On Aug 14, 2008, at 1:12 PM, [EMAIL PROTECTED] wrote:
I have checked : I am in the RAILS_ROOT/spec/controllers directory
I have tried with the second solution, but the get and post methodes
remain undefined.
Could it be a version compatibility problem ?
I'm using rails 2.1.0, and the REL_1_1_3
I have updated the plugins, and it seems to be working well indeed !
Thanks
Thib
On Aug 14, 2008, at 1:12 PM, [EMAIL PROTECTED] wrote:
I have checked : I am in the RAILS_ROOT/spec/controllers directory
I have tried with the second solution, but the get and post methodes
remain undefined.
Scott Taylor wrote:
Use Kernel.stub!(:`, wget...), and use Kernel.send(:`, wget)
instead of literal backticks.
Interestingly this doesn't quite work, but I used the principle.
The Kernel module is mixed into Object so when you use `shellcommand...
` you can intercept the call on the object
On Aug 14, 2008, at 11:58 PM, Andy Croll wrote:
Scott Taylor wrote:
Use Kernel.stub!(:`, wget...), and use Kernel.send(:`, wget)
instead of literal backticks.
Oops. Meant Kernel.stub!(:`).with(wget..).and_return some return
value.
Interestingly this doesn't quite work, but I
26 matches
Mail list logo