search for: davidchelimsky

Displaying 20 results from an estimated 49 matches for "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 CURRENT plugin, ran script/ generate...
2008 May 27
8
new --pattern option
...released) > that may change what files get loaded when you run the rake or spec > commands. Not a big deal if you''ve been following convention, but for > those who haven''t you may need to make a minor adjustment to your rake > file or spec.opts. > > http://blog.davidchelimsky.net/articles/2008/01/20/rspec-new-pattern-option > > Cheers, > David > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > > -- View this message in context: h...
2006 Nov 10
3
Specifying views
....rb:140:in `assign_shortcuts'' I can''t even tell what the error is. It''s giving a RuntimeError, but for what? The deprecation warning? Anyone see anything obvious? Thanks, Brandon [1] http://rspec.rubyforge.org/documentation/rails/writing/views.html [2] http://blog.davidchelimsky.net/articles/2006/11/06/view-spec- tutorial -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/rspec-users/attachments/2006111...
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} a...
2006 Aug 28
1
slightly different view
...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 your thoughts (here or there). http://butunclebob.com/ArticleS.DavidChelimsky.SpecOrganization Thanks, David
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)
..., sometimes many more times repeatedly although >> I dont touche the file again. Is this a known bug? > > It''s more of a conflict than a bug. Easily resolved: > > http://rubyforge.org/tracker/? > func=detail&group_id=797&aid=11147&atid=3149 > http://blog.davidchelimsky.net/articles/2007/05/29/rspec-and-autotest > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users _______________________________________________ rspec-users mailing list rspec-user...
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 (NoMethodError) from /home/edh/story/stories/all.rb:3:in `require''...
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?
...fixtures. I feel I will fall back to fixtures, so no more designing fun with mocks but things feels more lightweight and practical :-) Or perhaps it''s more up to project size and conditions... I don''t know yet. Oki, Priit at typical.nuby.reaction.to.mock.things [1] http://blog.davidchelimsky.net/articles/2006/11/06/view-spec-tutorial "Now the risk here is that you could build a model that doesn''t have a title field in it and your app will blow up! Admittedly, if you only write isolated, granular specs like this that risk is real. So you should be doing this in conjunction...
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?
...a pain when you have to add or remove fields. Additionally, the declarative version removes all of the noise so that the most important features of that story stand out. The imperative version looks like the "detailed scenarios" that David talked about at his ETEC slides (http://blog.davidchelimsky.net/articles/2008/04/01/etec-slides.) On slide #75 David gives a good overview of the pros and cons of this style. The pros mentioned are that they are easier to write and easier to change. While my stories may not read quite as bad as the example presented by Bryan I have been going down mo...