[rspec-users] Appropriate adapter (Rails, Cucumber)

2009-04-20 Thread Julian Leviston
Hi All, I've got a bunch of tests written in cucumber, and they're all lovely... this is rails testing i'm doing by the way and now I'm coming to testing the javascript and AJAX parts of the app... and I've decided to plug in selenium... my issue is, I'd like to select which adapter

Re: [rspec-users] [cucumber] Where does STDOUT go?

2009-04-27 Thread Julian Leviston
It produces console output for me. Julian. On 28/04/2009, at 6:53 AM, James Byrne wrote: If one invokes a Ruby script from a cucumber step definition and that script contains puts statements then where does the output go? I have a script that when run from the command line displays puts

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-28 Thread Julian Leviston
Perhaps use background? Julian. On 28/04/2009, at 10:18 PM, doug livesey wrote: Hi -- is it possible to set before and after blocks for individual feature files? I've tried putting them in step files, but they just get called before everything, like they'd been declared in env.rb, which

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-28 Thread Julian Leviston
Hey Ben, It'd be kinda cool if there was a sort of before and after for a feature rather than each scenario. Is there? (Rails context) We often need this. It'd be really helpful for things like when we want to test about 15 things on a particular web page, and they don't require fresh

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-30 Thread Julian Leviston
be nice if webrat could switch between browser types per scenario or per feature. Sigh. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 29/04/2009, at 3:47 PM, Ben Mabey b...@benmabey.com wrote: Julian Leviston wrote: Hey Ben, It'd be kinda cool if there was a sort

Re: [rspec-users] [cucumber] Bug introduced in 0.3.1

2009-04-30 Thread Julian Leviston
I have NO idea if this is relevant, but the way you extend worlds has changed, I'm fairly sure. Julian. On 30/04/2009, at 10:15 PM, Lee Hambley wrote: Hi All, I'm new to the list, but a happy cucumber user with a few weeks experience now... a bit of a shock this morning when someone

Re: [rspec-users] cucumber - referential (inherited?) scenarios

2009-05-02 Thread Julian Leviston
... Then... Then the option to turn this feature off or on on the command line. That'd be bloody brilliant. Okay so maybe I should go fork it and do it :) Julian. On 03/05/2009, at 4:50 AM, Ben Mabey wrote: Julian Leviston wrote: You know what'd be awesome? If Cucumber scenarios were

[rspec-users] cucumber - referential (inherited?) scenarios

2009-05-02 Thread Julian Leviston
You know what'd be awesome? If Cucumber scenarios were referential. I mean, wouldn't it be awesome if you could refer to them... so you could build on them... So in a login.feature I'd define: Scenario: logging in Given that a default user exists And I am on the login page When I fill in

Re: [rspec-users] [cucumber] How to DRY up table data that I'm seeing across tests ?

2009-05-06 Thread Julian Leviston
Hehe. It's funny I was after something just like this about a week ago... Basically it'd be cool if there was an option to get cucumber to explicitly say (on running) exactly which steps it was doing, regardless of whether they were in a .feature file, or a _steps.rb file. Julian.

Re: [rspec-users] top posting and plain text

2009-05-06 Thread Julian Leviston
On 07/05/2009, at 4:54 AM, aslak hellesoy wrote: Folks, I find it really hard to follow conversations that use top posting (http://en.wikipedia.org/wiki/Posting_style ). If you have a [Cucumber] topic, please respond with inline comments. And use plain text email - not html. I find it

[rspec-users] [Cucumber] Rails Selenium ruby-debug

2009-05-07 Thread Julian Leviston
Hey all, Has anyone else had any issues with trying to get APPLICATION code debugging when using cucumber, selenium webrat? I can debug steps just fine, but debugs in application code get skipped over under selenium for some reason. Is this usual? Julian.

[rspec-users] [cucumber] Is it usual that selenium doesn't allow debugger?

2009-05-07 Thread Julian Leviston
Hi, We're using Rails 2.3.2, and debugger doesn't seem to work in cucumber/ webrat running selenium mode. Has anyone else had this issue? It seems to be skipping the debugger methods Julian. ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] [Cucumber] Rails Selenium ruby-debug

2009-05-07 Thread Julian Leviston
On 07/05/2009, at 8:02 PM, Julian Leviston wrote: Hey all, Has anyone else had any issues with trying to get APPLICATION code debugging when using cucumber, selenium webrat? I can debug steps just fine, but debugs in application code get skipped over under selenium for some reason

Re: [rspec-users] [Cucumber] ANN: Cucumber 0.3.4

2009-05-14 Thread Julian Leviston
On 15/05/2009, at 12:48 AM, aslak hellesoy wrote: http://github.com/aslakhellesoy/cucumber/blob/173506c4013a7d733c5b4924e7af3dcc49db2218/History.txt Enjoy! ___ rspec-users mailing list rspec-users@rubyforge.org

Re: [rspec-users] Any way to continue on Assertion Failure

2009-05-26 Thread Julian Leviston
On 27/05/2009, at 9:33 AM, Gary Lin wrote: Hi, I wonder if there is any way to tell the test script to continue even when encountering an assertion failure? The reason I am asking this is because I have a test flow that can take a long time to run and it would be very useful if I can

Re: [rspec-users] why should_receive failure?

2009-07-14 Thread Julian Leviston
because Peepcode.new doesn't receive the awesome message. like it says... Julian. On 15/07/2009, at 12:59 PM, Zhenning Guan wrote: class PeepCode def awesome awesome end end describe PeepCode do it should fuck do PeepCode.new.should_receive(:awesome).and_return(awesome) end end

Re: [rspec-users] Problems testing destroy method in rspec2

2010-03-24 Thread Julian Leviston
Only thing that springs to mind is that perhaps you haven't specified the :method = :delete option on the link? Julian. On 25/03/2010, at 2:39 PM, Mauricio Aniche wrote: Hi, I am trying to test the destroy method in my rails 3 controller, but I always get an no route matches {} error.

Re: [rspec-users] Can I use mocking in this way?

2010-04-03 Thread Julian Leviston
On 04/04/2010, at 7:32 AM, David Chelimsky wrote: On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik zero0...@gmail.com wrote: Hello RSpec users! I have one abstract class and a few classes that inherit from that abstract one. Ruby doesn't have abstract classes. You can have a base class that

Re: [rspec-users] [OT] programming (OOP) principles resources

2010-06-10 Thread Julian Leviston
I'm not so sure We all know good principles of OOP actually. I'd recommend www.vpri.com.au and looking into the work of Alan Kay. A lot of his stuff can be found for free online, because it's decades old. Julian On 10/06/2010, at 7:23 PM, Joaquin Rivera Padron wrote: hi there, we all know

Re: [rspec-users] array order-agnostic matching?

2011-02-01 Thread Julian Leviston
Does this strike anyone else as odd? Don't you think the test should actually be written IN to the code itself? I guess I'm soft of stipulating a new language here, but perhaps Ruby is flexible enough to enable this. Surely as the private methods of a class change, the testing code HAS to

Re: [rspec-users] array order-agnostic matching?

2011-02-01 Thread Julian Leviston
interested On Feb 1, 2011 7:28 PM, Julian Leviston jul...@leviston.net wrote: Does this strike anyone else as odd? Don't you think the test should actually be written IN to the code itself? I guess I'm soft of stipulating a new language here, but perhaps Ruby is flexible enough

Re: [rspec-users] Better visualizations of spec running time besides --profile?

2011-08-31 Thread Julian Leviston
cough Concurrency? Julian On 01/09/2011, at 8:06 AM, John Feminella wrote: We have about 2,000 specs in a Rails app that take roughly 80 seconds to run, and I'm trying to improve the performance of things a bit. While the profile mode has proven useful so far, it only shows the top ten

Re: [rspec-users] id getting overwritten with 0 when testing

2012-01-25 Thread Julian Leviston
It'd be nice to have a bit of context for this issue. It's most likely an issue with your model's validation... Julian On 25/01/2012, at 5:24 PM, Guyren G Howe wrote: My code that saves a record works fine in development or production, or from the console. I can take the code in my test

Re: [rspec-users] id getting overwritten with 0 when testing

2012-01-25 Thread Julian Leviston
PM, Guyren G Howe wrote: On Jan 24, 2012, at 11:27 PM, Julian Leviston wrote: On 25/01/2012, at 5:24 PM, Guyren G Howe wrote: My code that saves a record works fine in development or production, or from the console. I can take the code in my test and run it in the console, and it works

Re: [rspec-users] Game development: how to test interactions like an attack?

2012-02-02 Thread Julian Leviston
I always find it's very good to start simply. Make the simplest spec you can imagine, then the next, and so on... What is a spec? Some of this stuff might seem so obvious... for example... when you start playing your game, you expect that it'll present you with something... write a test for

Re: [rspec-users] testing framework for test automation

2012-02-05 Thread Julian Leviston
This will probably help you. http://fijiaaron.wordpress.com/2008/07/10/ruby-ci-options/ Julian On 05/02/2012, at 7:29 PM, Ze T wrote: Hello, Anyone working in QA Test Automation with RSpec wouldn’t mind posting their testing framework or know where I can go to get more info on testing

Re: [rspec-users] tests using factorygirl

2012-02-29 Thread Julian Leviston
Nah I had this issue, too... use this FactoryGirl do assocation :location, etc. (look it up) end On 01/03/2012, at 4:19 PM, S Ahmed wrote: I'm trying to use factory for a test case, but the model I am creating via the factory depends on another model, how do you setup a factory like

Re: [rspec-users] Simple code dosn't work

2012-04-04 Thread Julian Leviston
On 05/04/2012, at 8:02 AM, Brad Symons wrote: I think you have a syntactical error on the line thats throwing the error, you state: j.even?should be true #throws an error on j == 2, j == 4 should this line not read as: j.even?.should be true lol j.even?.should be_true

Re: [rspec-users] [Newbie's Doubt] Model's Tests

2012-04-17 Thread Julian Leviston
What do you mean repeated? You mean you can't have an abbreviation with two of the same letters? Julian On 18/04/2012, at 10:50 AM, Luciano Borges wrote: I'm studying Rspec and doing some model's tests. I have a table with a field which must have two characters, the field should not be

Re: [rspec-users] [Newbie's Doubt] Model's Tests

2012-04-17 Thread Julian Leviston
duplicate_item = Item.new(:abbreviation = ab) duplicate_item.should_not be_valid On 18/04/2012, at 11:11 AM, Luciano Borges wrote: 2012/4/17 Julian Leviston jul...@leviston.net What do you mean repeated? You mean you can't have an abbreviation with two of the same letters? Julian Hi Julian