Re: [rspec-users] stepping across features

2008-12-02 Thread Mischa Fierer
James, Hey, actual code might make it easier to help (maybe others disagree), but here's a few things: I'm assuming you're using rails, and has many through. It sounds like you have something like model: Picture (has many pagepictures, has many pages through pactures model; Page (has many page

Re: [rspec-users] Cucumber and Rcov

2008-12-03 Thread Mischa Fierer
James, Maybe you are asking something else...but after you type rake feature:rcov there should be a folder in rails root called "features_rcov," which may solve your problem. rake features:rcov open features_rcov/index.html -Mischa On Wed, Dec 3, 2008 at 9:04 PM, James Byrne <[EMAIL PROTECTED]>

Re: [rspec-users] testing rails mailers

2008-12-13 Thread Mischa Fierer
I found this useful: http://madhatted.com/2008/7/10/rspec-real-world-testing On Thu, Dec 11, 2008 at 7:42 AM, Ivor Paul wrote: > Hi Guys > > I am trying to spec some rails mailers. > > The only info I found was this post > http://kpumuk.info/ruby-on-rails/testing-mailers-with-rspec/ > by Dmyt

Re: [rspec-users] Cucumber fat client

2008-12-16 Thread Mischa Fierer
Also, if people are into this sort of thing, I would be up for helping build it. On Tue, Dec 16, 2008 at 3:17 AM, Mischa Fierer wrote: > A few other things... > > In the interface that I was describing, it would solve several problems to > have something like: > > Given I&#

Re: [rspec-users] Cucumber fat client

2008-12-16 Thread Mischa Fierer
Your feature has been saved!" When I select "mischa -- developer" When I press "Send feature" Then I should see "feature sent to mischa" Obviously a bit hacky of a feature, but does everyone see what I'm getting at? M On Tue, Dec 16, 2008 at 3:08 AM, Mischa

Re: [rspec-users] Cucumber fat client

2008-12-16 Thread Mischa Fierer
I can maybe offer something here. *begin rambling* My team of 4 (2 coders, 2 biz people) has recently switched to using Pivotal Tracker, and we've been doing the following: 1) Figure out what we can do that will add value 2) Draw out the ui / changes on a whiteboard 3) Write out features & copy t

[rspec-users] Rails 2.3

2008-12-17 Thread Mischa Fierer
Wanted to point out to anyone having problems that rspec-rails 1.1.11.1 works with rails 2.3, while rspec 1.1.11 does not appear to. Also, to get rspec 1.1.11.1 to build I had to remove UPDATE from the manifest. M ___ rspec-users mailing list rspec-user

Re: [rspec-users] Rails 2.3

2008-12-17 Thread Mischa Fierer
Thank you for clarifying. Yes, I mean edge rails. Best, M On Wed, Dec 17, 2008 at 4:01 AM, David Chelimsky wrote: > On Wed, Dec 17, 2008 at 3:39 AM, Mischa Fierer wrote: > > Wanted to point out to anyone having problems that rspec-rails 1.1.11.1 > > works with rails 2.3, whi

[rspec-users] Testing email w/ cucumber

2008-12-17 Thread Mischa Fierer
Dear all, Wanted to let people know that Ben Mabey has an excellent little plugin here: http://github.com/bmabey/email-spec/tree/master For testing e-mail. Aaron Gibralter made some additions as well here: http://github.com/agibralter/email-spec/tree/master I made some further changes here: ht

Re: [rspec-users] fixtures and associations

2008-12-18 Thread Mischa Fierer
http://toolmantim.com/article/2008/10/27/fixtureless_datas_with_machinist_and_sham http://www.slideshare.net/toolmantim/cucumbers-presentation http://github.com/tpope/pickler/tree/master On Thu, Dec 18, 2008 at 7:24 AM, Daniel Lopes wrote: > I really don't know what's going on with those hell

Re: [rspec-users] fixtures and associations

2008-12-18 Thread Mischa Fierer
oops that last one was supposed to be http://github.com/ianwhite/pickle/tree/master similar names On Thu, Dec 18, 2008 at 8:16 AM, Mischa Fierer wrote: > > http://toolmantim.com/article/2008/10/27/fixtureless_datas_with_machinist_and_sham > > http://www.slideshare.net/toolmant

Re: [rspec-users] newbie: errors getting started with cucumber

2008-12-20 Thread Mischa Fierer
Try pasting this into config/environments/test.rb #config/environments/test.rb #config.gem 'rspec-rails', :source => "http://gems.github.com";, :lib => 'spec/rails' #config.gem 'cucumber', :version => '0.1.12', :source => " http://gems.github.com"; config.gem 'webrat' , :source => "http://gems.git

Re: [rspec-users] Cucumber: dependencies.rb:266:in `load_missing_constant': uninitialized constant Dispatcher

2008-12-23 Thread Mischa Fierer
from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.13/bin/../lib/cucumber/rails/world.rb:18 Here's line 18: Dispatcher.class_eval do def self.failsafe_response(output, status, exception = nil) raise exception end end I would do the following: 1) Try it with gem rails on the old projec

Re: [rspec-users] After block

2008-12-23 Thread Mischa Fierer
you could mess around with what cucumber is doing, like @__executor.instance_variable_get("@executed_scenarios") There may be an easier way that I'm not aware of. On Tue, Dec 23, 2008 at 8:26 AM, aidy lewis wrote: > Hi, > > Is the way to figure out the the last scenario executed in the Afte

Re: [rspec-users] [cucumber] screenshot upon exception

2008-12-23 Thread Mischa Fierer
Hi, I have not had any trouble opening the debugger in cucumber. Then "debug" do debugger stop_here = 1 end M On Tue, Dec 23, 2008 at 4:12 AM, aidy lewis wrote: > Hi Aslak, > > Thanks for the heads-up, but it seems the AfterStep block is only > executed if a step passes and not if it fails

Re: [rspec-users] cucumber command

2008-12-26 Thread Mischa Fierer
try: rake features FEATURE=features/administracion/alta_centros.feature On Fri, Dec 26, 2008 at 2:08 AM, Juanma Cervera wrote: > Hello > I want to use the cucumber command to run only the feature I am working > on now. > But I have a structure of folders like this: > > features/ >administr

[rspec-users] Cucumber speed tips

2008-12-27 Thread Mischa Fierer
As some of us have been using cucumber for quite a while now, I may not be the only one wishing his many steps ran a bit faster. Let's try to put together a quick FAQ for people looking to speed up their steps. Here's my ideas: 1) Consolidate steps You only need to test login for each login case

Re: [rspec-users] Do people write specs for the code in their steps? How?

2008-12-30 Thread Mischa Fierer
Hi Erik -- Interesting ideas. We're using cucumber for a medium-sized application (total steps run is about 550), but I hadn't really considered testing the step definitions. I have not yet noticed bugs originating from not testing step definitions. I think the following issues drive this / me

Re: [rspec-users] Do people write specs for the code in their steps? How?

2008-12-30 Thread Mischa Fierer
t 12:30 AM, Mischa Fierer wrote: > Hi Erik -- > > Interesting ideas. > > We're using cucumber for a medium-sized application (total steps run is > about 550), but I hadn't really considered testing the step definitions. > > I have not yet noticed bugs originating fr

Re: [rspec-users] newbie: errors getting started with cucumber

2008-12-30 Thread Mischa Fierer
try this b4 trying to install Aslak's webrat: gem sources -a http://gems.github.com On Tue, Dec 30, 2008 at 10:48 PM, Manasi Vora wrote: > Aslak Hellesøy wrote: > > On Thu, Dec 25, 2008 at 2:04 PM, Manasi Vora > > wrote: > > > >> > >> I am using webrat 0.3.2 cucumber 0.1.13 activerecord 2.1.

Re: [rspec-users] Cucumber speed tips

2009-01-05 Thread Mischa Fierer
Josh, Ben & Luke -- This is great stuff, thanks a bunch. Over at CaptainU we are probably going to get into the thousands in the next few weeks or so, so speed is a serious issue. I'm going to work on a longer blog post about this, will let you guys know when finished. Best, M On Mon, Jan 5, 20

Re: [rspec-users] Error: undefined method `use_transactional_fixtures

2009-01-06 Thread Mischa Fierer
this may help: http://themomorohoax.com/2008/12/17/rails-2-3-tests On Wed, Jan 7, 2009 at 12:29 AM, waseem ahmad wrote: > Hi, > > I get this error when I do > > $spec /spec/any_spec > > /home/waseem/app/spec/spec_helper.rb:14: undefined method > `use_transactional_fixtures=' for # > (NoMeth

Re: [rspec-users] Cucumber HTML in IE6

2009-01-15 Thread Mischa Fierer
While I agree that ie6 must die, the fix required to make it work sounds minimal in this case. I may be wrong. Perhaps, Aidy, you would be interested in submitting a patch which Aslak could then decide on? M On Thu, Jan 15, 2009 at 12:27 PM, Nick Hoffman wrote: > On 2009-01-15, at 11:35, asla

Re: [rspec-users] Cucumber - but really ruby

2009-02-03 Thread Mischa Fierer
A full listing of this stuff can be found here: http://www.zenspider.com/Languages/Ruby/QuickRef.html#6 % appears to be the same thing as %Q On Tue, Feb 3, 2009 at 1:10 PM, James Byrne wrote: > James Byrne wrote: > > > > Thank you. What does %[...] do? > > This would not happen to be the same

Re: [rspec-users] [Cucumber] Level of features / Feature dependent steps

2009-02-18 Thread Mischa Fierer
Ben has a good post on the declarative vs imperative styles here: http://www.benmabey.com/2008/05/19/imperative-vs-declarative-scenarios-in-user-stories/ I totally agree with Josh, and indeed wrote out my own version of his login example before realizing I should probably read his post before repl

Re: [rspec-users] Cucumber for large projects

2009-03-03 Thread Mischa Fierer
Speed will possibly become a big issue once you get above 1-2k steps or so. Testjour was written to solve this: http://github.com/brynary/testjour/tree/master While I haven't been able to use it myself, since I work mostly from home, it apparently radically reduces the time it takes to run feature

Re: [rspec-users] OT: AR Default Values

2009-03-05 Thread Mischa Fierer
Not sure if this is what you're looking for, but there is also this: http://github.com/FooBarWidget/default_value_for/tree/master On Wed, Mar 4, 2009 at 1:58 PM, James Byrne wrote: > Scott Taylor wrote: > > > You could try this plugin: > > > > http://github.com/aussiegeek/active_record_defaults/

[rspec-users] [Cucumber][email-spec] Testing Incoming Email with email-spec

2009-03-27 Thread Mischa Fierer
When the email is delivered And I go to the email page Then I should see only the text part of the email Scenario: An incoming html only email goes to a page Given an incoming email to "mis...@example.com" And the email has only html And the email

Re: [rspec-users] [Cucumber] Welcome Ben Mabey to the official Cucumber team

2009-04-07 Thread Mischa Fierer
Cool! Congrats Ben. On Tue, Apr 7, 2009 at 6:13 PM, Zach Dennis wrote: > On Tue, Apr 7, 2009 at 5:53 PM, Ben Mabey wrote: > > aslak hellesoy wrote: > >> > >> Ben Mabey has accepted my invitation to be on the core Cucumber team. > >> Ben has been a long time contributor to Cucumber's ecosystem a

Re: [rspec-users] Cucumber - wierd button pressing error

2009-05-06 Thread Mischa Fierer
Hi - I vaguely remember having a similar problem. >From what I remember, this has to do with upgrading to rails 2.3.2 and having older versions of gems / plugins (like webrat, nokogiri, resources_controller, resource_controller etc) http://blog.adambair.com/post/89557713/cucumber-webrat-and-uninit

Re: [rspec-users] Newbie: Rspec, Webrat, Mechanize, Cucumber

2009-05-11 Thread Mischa Fierer
contain is a webrat method. http://docs.rdocul.us/webrat/master/classes/Webrat/Matchers.html#M07 On Wed, May 6, 2009 at 7:08 PM, DVG wrote: > Alright, I'm trying to get up to speed with using Rspec, Webrat, > Mechanize and Cucumber to test a non rails application. > > The RSpec Matchers (I

Re: [rspec-users] Should deleting code require failing specs?

2009-07-16 Thread Mischa Fierer
When something small is removed for a good reason (e.g. it causes a bug) I sometimes find it necessary to test that it is not there. This is especially important in a case where most programmers might look at a line of code and think "Hmm, I should add x to this method in order to make it work" but