On 16 Jul 2009, at 17:28, internetchris wrote:
Very nice the ability to see your workflow helps me a ton. I guess
I needed to see what other developers did. I have a project that I
started, but then quit until I nailed down the testing. I will have to
catch up on the code I have already wri
Very nice the ability to see your workflow helps me a ton. I guess
I needed to see what other developers did. I have a project that I
started, but then quit until I nailed down the testing. I will have to
catch up on the code I have already written, but I'm grasping the
cucumber and rspec corre
On Thu, Jul 16, 2009 at 7:46 AM,
internetchris wrote:
> Tom,
>
> I appreciate the reply...
>
> So would I be correct in saying that I should develop all of my spec
> tests first, and then finish it up by running some cucumber tests?
>
> Thanks!
>
> Chris
>
Chris
If you follow strict Behaviour Dri
Hi Chris,
On 16 Jul 2009, at 06:46, internetchris
wrote:
So would I be correct in saying that I should develop all of my spec
tests first, and then finish it up by running some cucumber tests?
You can do whatever you like. This is certainly a valid way of
working, and as a testing strateg
Tom,
I appreciate the reply...
So would I be correct in saying that I should develop all of my spec
tests first, and then finish it up by running some cucumber tests?
Thanks!
Chris
On Jul 15, 11:34 pm, Tom Stuart wrote:
> Hi Chris,
>
> On 16 Jul 2009, at 04:14, Chris Sund wrote:
>
> > Can som
Hi Chris,
On 16 Jul 2009, at 04:14, Chris Sund wrote:
Can someone clarify in "simple" terms the relationship between rspec
and cucumber.
Very short answer:
RSpec is for specifying the behaviour of individual pieces of your
application, ideally in isolation from all of the other pieces. The
Hey Everyone,
I've been reading the rspec book, and I'm trying to tie everything
together, but I'm a little confused. Keep in mind this is my first
introduction to TDD/BDD. When it came to testing my rails app I jumped
into learning rspec before I ever tried to using any of the built in
test:unit
We did think about using JRuby to write data through the domain -
unfortunately it looked fiddly, especially as there are quite a few
things our ruby code wants to do that the domain doesn't cover.
For example, mass deleting data - in the domain, almost everything is
soft-deleted, and everything g
Korny Sietsma wrote:
We are actively debating this very topic :)
For most stuff, we create data through the UI.
We have a "Before" block that prunes the database back to a known
state before each scenario, using the ruby 'sequel' library. It's
pretty fast, but it does mean we have to be carefu
We are actively debating this very topic :)
For most stuff, we create data through the UI.
We have a "Before" block that prunes the database back to a known
state before each scenario, using the ruby 'sequel' library. It's
pretty fast, but it does mean we have to be careful in our selenium,
that
Korny Sietsma wrote:
True, but cucumber is useful for lots of different kinds of projects.
I'm currently using it to build a java webapp, so I don't need much
beyond cucumber, selenium, and selenium-client.
I'm curious, with your current setup do you insert data directly into
your database (i
True, but cucumber is useful for lots of different kinds of projects.
I'm currently using it to build a java webapp, so I don't need much
beyond cucumber, selenium, and selenium-client.
But agreed, if I was in rails-land (sigh) then I'd want webrat and rspec-rails.
- Korny
p.s. I'm aware webrat w
the book The RSpec book has an example where they build an app with
just ruby. ("Describing Application Behaviour with Cucumber")
You can download some sample chapters.
http://www.pragprog.com/titles/achbd/the-rspec-book
This has been a big help for me.
also Railscast (http://railscasts.com/) has
On Wed, Apr 29, 2009 at 7:42 AM, Korny Sietsma wrote:
> Presumably you only need these if you are *building* cucumber?
>
> If you just want to use cucumber, it should be as simple as "gem
> install cucumber", and it should get all the other dependencies. On
> my machine it seemed to install tree
Presumably you only need these if you are *building* cucumber?
If you just want to use cucumber, it should be as simple as "gem
install cucumber", and it should get all the other dependencies. On
my machine it seemed to install treetop, polyglot, and presumably a
few others - but I don't have rsp
There's about 3 more gems you need to install. RSpec, RSpec-rails and
WebRat. There's also a great introductory article I found on-line at
http://blog.rubyyot.com/2009/01/chores-a-test-driven-website/
I'm only half-step ahead of you and feel your pain.
Good luck,
Wayne
On Apr 28, 12:47 pm, "Sophi
Just getting started with cucumber on Mac 10.5.6.
I have the default Ruby install (1.8). I'm not using Rails. I did a
gem update cucumber
and now have cucumber-0.3.1 in my gems.
I also did a
git clone
and have a repo with cucumber 0.3.2.
When I cd into my cucumber (git) directory and do:
c
ok thanks a lot.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Tue, Apr 29, 2008 at 3:06 AM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Apr 29, 2008, at 12:59 AM, Patrick Aljord wrote:
>
>
> > Hey all,
> >
> > I have an action that looks like this:
> >
> > def create
> > if using_open_id?
> > open_id_authentication(params[:openid_url])
> > els
On Apr 29, 2008, at 12:59 AM, Patrick Aljord wrote:
Hey all,
I have an action that looks like this:
def create
if using_open_id?
open_id_authentication(params[:openid_url])
else
password_authentication(params[:email], params[:password])
end
end
I have a spec that looks li
Hey all,
I have an action that looks like this:
def create
if using_open_id?
open_id_authentication(params[:openid_url])
else
password_authentication(params[:email], params[:password])
end
end
I have a spec that looks like this:
it "should login and redirect" do
21 matches
Mail list logo