On Sep 7, 2008, at 7:58 PM, Sam Stokes wrote:
What approaches do people use to achieve this?
Perhaps I'm bucking what others have advised against, so take it for
what it's worth.
I make some limited use of global (instance) variables that
correspond to english language pronouns. I have
Jonathan Linowes wrote:
> I make some limited use of global (instance) variables that
> correspond to english language pronouns. I have things like
> @current_user (corresponds to "I"), @current_project (corresponds to
> "the project"), etc. I am careful to be consistent. There's only a
> handful o
On 4 Sep 2008, at 18:55, Jonathan Linowes wrote:
I'm just thinking out loud here...
It could be useful to have a way to run scenarios on a copy of a
fully populated production database, as an alternative to normal use.
Not sure how that'd work, maybe replace the Given's but leave the
Whens a
2008/9/8 Jonathan Linowes <[EMAIL PROTECTED]>
> On 4 Sep 2008, at 18:55, Jonathan Linowes wrote:
>>
>> I'm just thinking out loud here...
>>> It could be useful to have a way to run scenarios on a copy of a fully
>>> populated production database, as an alternative to normal use.
>>> Not sure how
By external resources, I mean, the code start a http connection and GET xmls
from the url specified. I will definitely not rely my unit test on an
external url or anything like that. But how do I unit test the method? I
mean, I can basically mock the Net::HTTP, but then the test will pretty much
be
On Sep 8, 2008, at 12:35 PM, Dan North wrote:
2008/9/8 Jonathan Linowes <[EMAIL PROTECTED]>
On 4 Sep 2008, at 18:55, Jonathan Linowes wrote:
I'm just thinking out loud here...
It could be useful to have a way to run scenarios on a copy of a
fully populated production database, as an alternat
2008-09-05 16:50, Ashley Moran:
> Every time someone asks me this my answer is always the same...
>
> Don't.
I think I happen have a case where it would be plausible to run
specs/stories against production data.
I need a sanity checker to detect "data smells" of various magnitude
from (a copy of
On Sep 08, 2008, at 1:09 am, Pat Maddox wrote:
btw, a job ad that would catch my eye would be one that lists the
tools you
use, what open source contributions you've made to them, and what
other
open source stuff you've done in the form of plugins, mini apps,
whatever.
Hi Pat, Mark, Sco
2008-09-05 16:10, Nick Hoffman:
> I know what you mean about it feeling reassuring to know that your
> tests/specs passed when run on production data. However, if your
> specs, scenarios, tests, etc cover all behaviours, situations, edge
> cases, etc, then you needn't worry. All is well.
I think y
Sam Stokes wrote:
Jonathan Linowes wrote:
I make some limited use of global (instance) variables that
correspond to english language pronouns. I have things like
@current_user (corresponds to "I"), @current_project (corresponds to
"the project"), etc. I am careful to be consistent. There's only
On Sep 8, 2008, at 12:12 PM, Yi Wen wrote:
By external resources, I mean, the code start a http connection and
GET xmls from the url specified. I will definitely not rely my unit
test on an external url or anything like that. But how do I unit
test the method? I mean, I can basically mock
def run
url = URI.parse(run_path)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = use_ssl_for_run
http.start {
req = Net::HTTP::Get.new run_path
req.basic_auth self.class.user, self.class.password
@response = http.reque
On 9/8/08, Yi Wen <[EMAIL PROTECTED]> wrote:
> By external resources, I mean, the code start a http connection and GET xmls
> from the url specified.
Take a look at the video from Ruby Hoedown in which Joe O'brien and
Jim Weirich dicuss this topic:
http://rubyhoedown2008.confreaks.com/02-joe-obrie
Hi folks,
I'm hoping for a bit of help on best-practices for skipping a
before_filter when running a particular step. Specifically the
authentication filter. What happens is that the post (see code below)
returns a redirect response to the login page triggered by the of my
authentication filter,
On Mon, Sep 8, 2008 at 7:49 PM, Eric Harris-Braun <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I'm hoping for a bit of help on best-practices for skipping a
> before_filter when running a particular step. Specifically the
> authentication filter. What happens is that the post (see code below)
> ret
On Sep 8, 2008, at 8:49 PM, Eric Harris-Braun wrote:
Hi folks,
I'm hoping for a bit of help on best-practices for skipping a
before_filter when running a particular step. Specifically the
authentication filter. What happens is that the post (see code below)
returns a redirect response to the
On Mon, Sep 8, 2008 at 9:47 PM, Jonathan Linowes
<[EMAIL PROTECTED]> wrote:
>
> On Sep 8, 2008, at 8:49 PM, Eric Harris-Braun wrote:
>
>> Hi folks,
>>
>> I'm hoping for a bit of help on best-practices for skipping a
>> before_filter when running a particular step. Specifically the
>> authenticatio
never mind, i misread your question, thought you were talking about a
controller spec
rather than a story
stories are intended to exercise the full stack, so I actually log
in, with a step like this:
Given "I am logged in " do
user = create_registered_user( :login => 'user', :password
Thanks David for the very detailed response.
I see what you mean about why this should be hard to do. In fact
perhaps what I should do instead is simply specify the user-login part
in my story instead of skipping it. I didn't at first because its a
pain, i.e. sending the sessions/create post and
Zach Dennis wrote:
> This thread may help give you some insight...
>
> http://www.mail-archive.com/rspec-users@rubyforge.org/msg05382.html
Thanks for pointing me there. The first insight it's given me is that
I'm actually asking two different (though related) questions:
1) What's the best way t
On Mon, Sep 8, 2008 at 10:49 PM, Eric Harris-Braun <[EMAIL PROTECTED]> wrote:
> Thanks David for the very detailed response.
>
> I see what you mean about why this should be hard to do. In fact
> perhaps what I should do instead is simply specify the user-login part
> in my story instead of skippi
Eric Harris-Braun wrote:
> Hi folks,
>
> I'm hoping for a bit of help on best-practices for skipping a
> before_filter when running a particular step. Specifically the
> authentication filter. What happens is that the post (see code below)
> returns a redirect response to the login page triggered
22 matches
Mail list logo