Displaying 20 results from an estimated 49 matches for "davidchelimski".
Did you mean:
davidchelimsky
2007 Oct 21
18
plain text stories
Thanks to discussions on this list, suggestions from many of you and a
patch from Pat Maddox, we now have Plain Text User Stories in Story
Runner.
Read more:
http://blog.davidchelimsky.net/articles/2007/10/21/story-runner-in-plain-english
Cheers,
David
2007 May 01
6
rspec and autotest
If you want to use rspec-0.9.2 with autotest (ZenTest-3.5.2), you''ll
want to read this blog:
http://blog.davidchelimsky.net/articles/2007/05/01/rspec-0-9-1-and-autotest-zentest-3-5-2
Enjoy!
David
2007 Sep 08
3
template.expects_render?
Hi All,
I''m trying to make use of template.expects_render, is outlined in
David''s post(http://blog.davidchelimsky.net/articles/2007/06/28/
template-expects_render). I get an undefined method error on
expects_render. I made sure I had the 1.0.8 gem as well as
reinstalling the plugin and redoing the bootstrap. Still no luck. So
I created a clean project, installed the
2008 May 27
8
new --pattern option
Hello.
You''re saying that:
To get rspec to behave as it did before this change, use this:
--pattern "**/*.rb"
I tried like this (rspec 1.03) and it wasn''t same as before (rspec 1.08).
Now it also loads all other files in current directory and in all
subdirectories and not only from directory and subdirectories given to spec
as a parameter.
So, for example, I have
2006 Nov 10
3
Specifying views
I''m trying to spec my views with 0.7.1 on edge rails per the
instructions on the rspec site [1] and David''s blog [2], but I''m not
having much luck. Here''s my spec in specs/views/accounts/
new_view_spec.rb:
require File.dirname(__FILE__) + ''/../../spec_helper''
context "The new account form" do
specify "should have an
2007 May 29
12
questions rspec on rails
Hi, rather than flooding this list with separate emails, I''ve been
queueing up questions using rspec with rails. (an irc channel would
be nice too :) Here ya go...
- Is there a way to test named routes?
- Could I get an example how to test an ajax request
(link_to_remote)? would that go in view? and/or in controller spec?
- Can you assert which layout template is rendered in a
2007 Sep 25
4
Autotest with RSpec Rails and Engines
Hi
We have a Rails project using an engine which I want to run autotest
with rspec against.
So the project specific specs are in the specs directory but the
common specs are in the specs directory of the engine plugin (e.g.
vendor/plugin/engine/specs)
Just wondering where I would be looking to change configuration so
that autotest will also look for the specs in the engine directory?
2011 Nov 06
0
rspec-2.8.0.rc1 is released
http://blog.davidchelimsky.net/2011/11/06/rspec-280rc1-is-released/
See the blog post for more information, but highlights include:
1. tag overrides
Now you can set tag/filter defaults in .rspec:
--tag ~javascript
or in RSpec.configure (in spec_helper.rb):
RSpec.configure {|c| c.filter_run_excluding :javascript}
and then override that from the command line when you want to run the
2006 Aug 28
1
slightly different view
All,
One of the things I learned when I started to do TDD was that you
should write enough tests to give you the courage to move forward. For
some, that results in more tests than others.
In approaching BDD, my initial thinking was to write examples for all
of the possible behaviours in every context. I''ve had a change of
thinking on this. Please check out my blog on it and let me know
2008 Mar 04
2
Matchers tutorial ...
I am looking for a good a - z matchers tutorial . Anyone got a url
for one?
Thanks
Anthony Broad-Crawford
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080303/fd652444/attachment-0001.html
2009 Feb 01
8
undefined method `inherit'' for Merb::Test::ExampleGroup
RSpeckers:
I''m trying to install this into a Merb-generated RSpec rig:
http://code.jeremyevans.net/doc/fixture_dependencies/
It requires inserting their test case into RSpec. This is the documented way to
do it:
describe ''Post'' do
inherit FixtureDependencies::SequelTestCase
And that leads to the syntax error in the subject line. (No stack trace is
available
2007 May 29
4
rspec and autotest (was: questions rspec on rails)
Do have the latest versions?
RSpec-1.0.3
ZenTest-3.6.0
---------- Forwarded message ----------
From: Jonathan Linowes <jonathan at parkerhill.com>
Date: May 29, 2007 11:47 AM
Subject: Re: [rspec-users] questions rspec on rails
To: rspec-users <rspec-users at rubyforge.org>
Hi, I should have mentioned I already did that. Here''s my spec.opts file
--colour
--format
progress
2007 Jun 03
3
should_receive.again
Hi,
It appears that if I have 2 should_receives in a row, the latest one
overrides the previous one(s).
If there isn''t one, could we add a way to accumulate them, such as
@thing.should_receive(:method).and_return(@value)
@thing.should_receive(:method).again.and_return(@value)
@thing.should_receive(:method).again.and_return(@value)
would be equivalent to
2007 May 23
4
autotest and rspec for a non-rails project
hi list -
should it be possible to use autotest to continuously run specs for a
non-rails project? when i execute autotest in the base directory of my
project, it complains that it cannot load rspec_autotest, however looking at
rspec_autotest[1] and rspec_rails_autotest.rb, it appears as though both are
geared towards rails (perhaps even rspec on rails).
cheers,
jean-pierre
[1]
2007 Aug 15
4
nuby: how spec redirect_to at ApplicationController
Good morning rspec people!
Still rspec nuby: I must do something wrong obviously.
How can I spec about redirect_to at ApplicationController
describe ApplicationController do
it "method login_required should redirect to home path without login" do
pending "I tried to use controller.login_required.should be_redirected
and got NoMethodError with nil object
2007 Nov 15
5
What command to run all stories?
Hi, I''ve been following this thread and I can get the example stories
to run with the ruby command. But I''ve been unable to get the example
from http://blog.davidchelimsky.net/articles/2007/10/25/plain-text-stories-part-iii
to run with all.rb
ruby stories/all.rb
/home/edh/story/stories/additions/steps/addition_steps.rb:2: undefined
method `steps_for'' for main:Object
2007 May 11
12
tutorial
Hello, Hello
Where i can found a good tutorial about Rspec ?
thanks
2007 Aug 28
3
How do you keep mocks updated without pain?
Hi!
I know you must be answering a lot of basic questions, sorry about that :-)
However I have not get it, how do you keep mocks updated without pain?
I reached to the point where mocking things for view. I spec
model-controller-view using "correct doc" way mocking-stubbing (plus I
should run integration test to be sure that everything really works
together).
Now, when I want to
2008 Mar 08
7
ridding away with do_request
I''m heading out of town, but had a quick thought I wanted to share.
Rather then using ambiguous named request helpers in controller specs
like "do_request", I''ve been using more readable helpers like
"post_create".
For example...
describe ProjectController do
def post_create
post :create, ...
end
before do
end
it "creates a new
2008 May 11
5
Are you writing "imperative" or "declarative" scenarios in your stories?
Hey all,
I just found Bryan Helmkamp''s (of webrat fame) slides on a presentation
he did at GoRuCo 2008:
http://www.brynary.com/2008/4/26/story-driven-development-slides-posted
On slides 21-24 he talks about writing good stories and shows gives two
examples.. the way not to do it and the way to do it. You can also see
the video of the presentation at confreaks