On Sep 12, 2008, at 4:01 PM, Joseph Wilk wrote:
Evan David Light wrote:
On Sep 12, 2008, at 12:26 PM, David Chelimsky wrote:
I believe that binding the table to the phrasing would be
immensely
useful and perhaps even crucial to Scenario authors.
Can you give an example of how this wo
Lol. I need another coffee. The should's needed to be above the post.
:-)
Tim.
On Thu, Sep 18, 2008 at 3:23 PM, Tim Haines <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'm striking a wee problem - and haven't been able to figure it out. In my
> before statement I'm setting up a mock video. I'd
On Wed, Sep 17, 2008 at 8:23 PM, Tim Haines <[EMAIL PROTECTED]> wrote:
> it "should update the original video and save the video" do
> post :upload_video, :video_id => 'hi', :Filedata => @video_file
> @vid.should_receive(:original=)
> @vid.should_receive(:save!)
>
Hi there,
I'm striking a wee problem - and haven't been able to figure it out. In my
before statement I'm setting up a mock video. I'd like one of my examples
to check that original= and save! are being called on the mock video, so I
have an example that looks like this:
it "should update
On Sep 9, 11:16 pm, Pat Maddox <[EMAIL PROTECTED]> wrote:
> "aslak hellesoy" <[EMAIL PROTECTED]> writes:
> > On Tue, Sep 9, 2008 at 7:16 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> >> Aslak - I think Matt is looking for this:
>
> >> Given /blah/ do
> >> pending
> >> end
>
> > I'm not crazy
Hey, James. Nice to hear from you. If you hear of any work, send it my
way.
I did watch the PeepCode stuff. I will watch it again now that I have
a little experience with the whole thing -- perhaps it will fill in
some blanks.
On Sep 17, 2008, at 2:13 PM, [EMAIL PROTECTED] wrote:
it'
The heart of my question is the seemingly chicken-and-egg-like nature
of testing many models that work together. I now have two flavors of
tests: tests that keep the models honest (computations and returns
values are consistent and accurate) and tests that operate at the
macro level as yo
aslak hellesoy wrote:
> On Wed, Sep 17, 2008 at 11:35 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
>
>> aslak hellesoy wrote:
>>
>>> On Wed, Sep 17, 2008 at 10:56 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
>>>
>>>
aslak hellesoy wrote:
> On Wed, Sep 17, 2008 at
On Wed, Sep 17, 2008 at 5:58 PM, aslak hellesoy
> Can we all please stop talking about "best" practices? It always
> depends. If people talk about best practices then others will be more
> inclined to apply them without thinking.
>
> http://www.satisfice.com/blog/archives/27
> http://www.infoq.com
On Tue, Sep 16, 2008 at 7:00 PM, Martin Streicher
<[EMAIL PROTECTED]> wrote:
>
> A few questions from someone new to rspec.
>
> 1/ I have several complex yet largely independent models using rspec to test
> internals and computation methods. I am about to tackle models that have
> several ties to e
On Wed, Sep 17, 2008 at 11:35 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
> aslak hellesoy wrote:
>> On Wed, Sep 17, 2008 at 10:56 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
>>
>>> aslak hellesoy wrote:
>>>
On Wed, Sep 17, 2008 at 8:42 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
> Hey al
On Wed, Sep 17, 2008 at 4:54 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
> On 16 Sep 2008, at 23:38, James Cox wrote:
>
>> BTW - do any 'proper' tdd/bdd types here reccommend any specific books?
>
> The Michael Feathers book (Working with Legacy Code) is well regarded on
> this list for teaching you
On Wed, Sep 17, 2008 at 2:54 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
> On 16 Sep 2008, at 23:38, James Cox wrote:
>
> BTW - do any 'proper' tdd/bdd types here reccommend any specific books?
>>
>
>
I've just started reading "Scripted GUI Testing with Ruby," which has
sections on RSpec, ZenTest a
On 16 Sep 2008, at 23:38, James Cox wrote:
BTW - do any 'proper' tdd/bdd types here reccommend any specific
books?
The Michael Feathers book (Working with Legacy Code) is well regarded
on this list for teaching you how to write testable code, if that
helps. I don't think there are any boo
aslak hellesoy wrote:
> On Wed, Sep 17, 2008 at 10:56 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
>
>> aslak hellesoy wrote:
>>
>>> On Wed, Sep 17, 2008 at 8:42 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
>>>
>>>
Hey all,
I am in the process of porting my RSpec Story Textmate bun
On Wed, Sep 17, 2008 at 10:56 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
> aslak hellesoy wrote:
>> On Wed, Sep 17, 2008 at 8:42 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
>>
>>> Hey all,
>>> I am in the process of porting my RSpec Story Textmate bundle over to
>>> Cucumber.
>>> So far I have the synta
On 9 Sep 2008, at 05:42, DyingToLearn wrote:
Hi,
Here is the short version of my question:
For stories, is webrat the way to go? How many of you use webrat? How
many don't?
Here is the long version:
I have been writing specs for some time now. I have noticed that once
I learned how to write s
We just write a step that says 'Given I am logged in' which actually
walks through the login process on the screens (fills_in :username etc).
However you could have another step like 'Given authenication is
disabled on the site' which does something dirty to your
ApplicationController using
aslak hellesoy wrote:
> On Wed, Sep 17, 2008 at 8:42 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
>
>> Hey all,
>> I am in the process of porting my RSpec Story Textmate bundle over to
>> Cucumber.
>> So far I have the syntax highlighting, file switching, and running of
>> the features and single sc
On Tue, Sep 9, 2008 at 1:21 AM, saltzmanjoelh <[EMAIL PROTECTED]> wrote:
>
> I have a lot of AJAX calls that make new divs or update information on the
> page. Is there anyway to test and if the right infomation has been received
> or displayed after an onclick action? If that makes sense?...
If y
On Tue, Sep 9, 2008 at 6:42 AM, DyingToLearn <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Here is the short version of my question:
> For stories, is webrat the way to go? How many of you use webrat? How
> many don't?
>
I use it and love it. When it doesn't do what I need (rarely) it's
trivial to drop do
On Wed, Sep 17, 2008 at 8:42 PM, Ben Mabey <[EMAIL PROTECTED]> wrote:
> Hey all,
> I am in the process of porting my RSpec Story Textmate bundle over to
> Cucumber.
> So far I have the syntax highlighting, file switching, and running of
> the features and single scenarios done. So not all the func
On Tue, Sep 9, 2008 at 2:33 AM, Eric Harris-Braun <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I'm hoping for a bit of help on best-practices for skipping a
There are no practices for this (or anything else) that are better
than any other practice.
> before_filter when running a particular step. S
Hey all,
I am in the process of porting my RSpec Story Textmate bundle over to
Cucumber.
So far I have the syntax highlighting, file switching, and running of
the features and single scenarios done. So not all the functionally is
ported yet and it has some rough edges but I think it is ready to b
On Wed, Sep 17, 2008 at 11:51 AM, Dan <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm working on a contract that doesn't use rspec. When I try and run
> autotest I get the following:
>
> loading autotest/rails_rspec
> Autotest style autotest/rails_rspec doesn't seem to exist. Aborting.
>
> I uninstall
Here's my take as just a happy user of stories... First, I say definitely
use WebRat. WebRat is a large part of what convinced me to use stories in
the first place. I was looking for both something that simulated real
usage, as well as something that wasn't so fragile/affected by changes in
impl
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,
Hi all,
Is it possible to count how many Examples failed and passed in one
Example Group?
I need to generate report only with Example Group name and numbers of
failed and passed examples forn each Example Group.
Thanks,
Alex
___
rspec-users mailing li
Hi all,
Is it possible to count failed and passed examples in ONE Example
Group?
Thanks,
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Thanks for your answers!
Just for the record, first I override methods and it really
worked :-)
However quite soon I realized, why not to use local openid server
instead. So I picked up masquerade[1] as local openid server. Wow, now
it feels much cleaner and more real to run features.
Cheers,
Pri
When I run a spec file from TextMate using the RSpec bundle's "Run
Examples" command (either using command-R or the bundle menu item with
the spec file open), I get an error dialog with the following text:
"Missing the Rails 2.0.2 gem. Please `gem install -v=2.0.2 rails`,
update your RAILS_GEM_VER
I have a lot of AJAX calls that make new divs or update information on the
page. Is there anyway to test and if the right infomation has been received
or displayed after an onclick action? If that makes sense?...
--
View this message in context:
http://www.nabble.com/rspec-on-javascript-links-tp
Hi,
Here is the short version of my question:
For stories, is webrat the way to go? How many of you use webrat? How
many don't?
Here is the long version:
I have been writing specs for some time now. I have noticed that once
I learned how to write specs (both the syntax and the techniques) it
mad
Hello,
I'm working on a contract that doesn't use rspec. When I try and run
autotest I get the following:
loading autotest/rails_rspec
Autotest style autotest/rails_rspec doesn't seem to exist. Aborting.
I uninstalled the rspec gem and don't have the rspec plugins loaded
for the project. I ha
Oh and to answer your question Martin -
it's a fairly common step for both. Your absolute best bet is going to
peepcode.com and watching all the vids on speccing. it should give you
more than enough starting information about approach.
BTW - do any 'proper' tdd/bdd types here reccommend any
On 16 Sep 2008, at 20:05, David Chelimsky wrote:
On Tue, Sep 16, 2008 at 1:59 PM, Mark Wilden <[EMAIL PROTECTED]> wrote:
On Tue, Sep 16, 2008 at 10:00 AM, Martin Streicher
<[EMAIL PROTECTED]> wrote:
3/ Has any documented how to run the debugger via rspec to help
track down
errors?
We TD
>
> law of demeter
I prefer to call it the "Suggestion of a Bunch of Guys on a Project called
'Demeter' That Is Useful to Keep in Mind in Many Situations". But that's not
as catchy.
It sure as hell ain't no law.
///ark
___
rspec-users mailing list
rsp
Why don't use just use a slug for these things? In other words - use
a unique name for each record, since the numbers 10 and 11 don't
mean much to anyone.
Then, use a factory (like FixtureReplacement or Object Daddy) to
generate the records in env.rb. Here's how you'd do that with
Fixtur
On Sep 17, 2008, at 9:01 AM, Martin Streicher wrote:
I find the debugger helpful to step through the underlying Rails
code when I am perplexed about the (errant) operation of something.
The underworld is full of wonderful secrets. Plus, I do make
mistakes and misinterpret and the debugge
On Wed, Sep 17, 2008 at 8:52 AM, Chris Flipse <[EMAIL PROTECTED]> wrote:
> I'm finding another case where I'll get unintended breaks, and it's not so
> easy to avoid as adding a PENDING to the end of a step matcher.
>
> Scenario: none of these are pending
> Given a completed feature
I'm finding another case where I'll get unintended breaks, and it's not so
easy to avoid as adding a PENDING to the end of a step matcher.
Scenario: none of these are pending
Given a completed feature # green
When I submit a bad create post # green
Th
I find the debugger helpful to step through the underlying Rails code
when I am perplexed about the (errant) operation of something. The
underworld is full of wonderful secrets. Plus, I do make mistakes and
misinterpret and the debugger lets me take a look around. I try to
avoid making ba
To follow on from David's great links, I posted an article recently
which has a collection of links that I found very useful while learning
stories. It also has some of the lessons I learnt along the way. Thought
it might be helpful.
http://www.joesniff.co.uk/ruby/telling-a-good-story-rspec-sto
I think they could do with creeping onto the rspec.info pages too.
Those pages are pretty thin for a stories newbie.
On 17 Sep 2008, at 09:22, Damian Jones wrote:
Check out these resources:
http://blog.davidchelimsky.net/assets/2008/7/14/
IntegrationTestingWithRSpec.pdf.zip
http://www.br
> Check out these resources:
>
> http://blog.davidchelimsky.net/assets/2008/7/14/IntegrationTestingWithRSpec.pdf.zip
> http://www.brynary.com/uploads/Story_Driven_Development.pdf
Thanks David,
They are excellent resources, cleared up a lot of things for me.
Damian
--
Posted via http://www.r
We found that we can raise a Cucumber::Pending error in the step
matcher to achieve the same effect, though in practice we're tending
to just write PENDING in the feature and break the link to the step
matcher.
Actually something that would really help us is the ability to
comment out sce
46 matches
Mail list logo