Re: [rspec-users] they synonym for it?

2007-07-12 Thread aslak hellesoy
On 7/12/07, Anthony Carlos [EMAIL PROTECTED] wrote: If you guys don't mind, I'm going to create a sample web page with this concept on it, stealing from Ashley and David's writings. If people like it, perhaps we can get it included in the documentation. Go ahead, that would be great! Aslak

Re: [rspec-users] spec for Rails library

2007-07-13 Thread aslak hellesoy
On 7/13/07, Gregory Murphy [EMAIL PROTECTED] wrote: How does one write a spec for a Rails library? Umm, just like you would for any other Ruby library. Can you be more specific? Aslak // Gregory ___ rspec-users mailing list

Re: [rspec-users] Any liberally-licensed open source projects out there that make good use of RSpec?

2007-08-09 Thread aslak hellesoy
Hi Obie! Check out Rubinius and Gecode/R (and RSpec hehe) On 8/9/07, Obie Fernandez [EMAIL PROTECTED] wrote: Any idea if it's kosher to include snippets of GPL'd code in a commercial publication? MIT license is no problem, but the GPL makes me nervous about that. I, personally, wouldn't

Re: [rspec-users] Using rcov and ouput to screen

2007-08-11 Thread aslak hellesoy
On 8/11/07, barsalou [EMAIL PROTECTED] wrote: Sorry I left off the subject by accident...hopefully this will connect to the thread. Mike B. - Forwarded message from [EMAIL PROTECTED] - Date: Fri, 10 Aug 2007 14:33:18 -0800 From: barsalou [EMAIL PROTECTED] Reply-To:

Re: [rspec-users] Problem of using fixture in Rspec

2007-08-13 Thread aslak hellesoy
On 8/13/07, Shaker [EMAIL PROTECTED] wrote: Dear Fellows: I was using fixtures in the model tests using Rspec. I found that the test data specified in the fixtures was stored in the test database once I ran the spec and won't be removed anyway. Is my observation correct? Yes, this is how

Re: [rspec-users] Backtrace tweaker - broken or me?

2007-08-13 Thread aslak hellesoy
On 8/13/07, Jay Levitt [EMAIL PROTECTED] wrote: Using 1.0.8, I just realized that I've been scrolling through pages of backtraces when rspec is supposed to clean them up for me. This is a new development machine, so I'm not sure if older versions worked or not. I'm running Ruby 1.8.6, Rails

Re: [rspec-users] Extra Options to Heckle

2007-08-15 Thread aslak hellesoy
On 8/15/07, Scott Taylor [EMAIL PROTECTED] wrote: I've tried running Heckle with rspec on some of my classes, but keep getting (what I believe to be) an infinite recursion. Is there some way to supply extra options to heckle via. rspec? Currently not. What options do you want to supply?

Re: [rspec-users] undefined method `mock_model' for [RSpec example]:#Class:0x25550a8

2007-08-20 Thread aslak hellesoy
On 8/20/07, Jay Levitt [EMAIL PROTECTED] wrote: I'd like to avoid that because it would be extra noise and it shouldn't be necessary. The generated specs work absolutely perfectly for me as/is (I'm on OS X). There have been a couple of bugs related to regexps and windows paths over time,

Re: [rspec-users] using restful_authentication current_user inside controller specs

2007-08-21 Thread aslak hellesoy
@ticket.should_receive(:new).with(@params).and_return(@ticket) is like saying: @ticket = @ticket.new(params) And that, of course, doesn't make much sense. I'll give you a chance to find the solution yourself ;-) Aslak On 8/21/07, Andrew WC Brown [EMAIL PROTECTED] wrote: I'm using

Re: [rspec-users] Can Rspec do module spec? What if module uses test data?

2007-08-22 Thread aslak hellesoy
Here is an example from RSpec's own specs: describe Enumerable do def each(block) [4, 2, 1].each(block) end it should be included in examples because it is a module do map{|e| e.to_i}.should == [4,2,1] end end If you pass the module to describe it

Re: [rspec-users] How to spec an attachment_fu model

2007-08-22 Thread aslak hellesoy
On 8/22/07, Matt Lins [EMAIL PROTECTED] wrote: First off, I'm not trying to spec attachment_fu, I know it's been tested. But, I added some code to that model that I do need to test. Basically, I need to somehow fulfill the uploaded_data property so I can actually run my tests(otherwise

Re: [rspec-users] How to spec an attachment_fu model

2007-08-22 Thread aslak hellesoy
, thumbnail_name_for(thumbnail) + '.jpg') end def public_image self.public_filename end end aslak hellesoy wrote: On 8/22/07, Matt Lins [EMAIL PROTECTED] wrote: First off, I'm not trying to spec attachment_fu, I know it's been tested. But, I added some code to that model

Re: [rspec-users] How to spec an attachment_fu model

2007-08-22 Thread aslak hellesoy
On 8/22/07, Matt Lins [EMAIL PROTECTED] wrote: No, as mentioned in my first post, the property that needs to be fulfilled is uploaded_data. I posted the accessor in my first post as well. Which part of my answer are you answering no to? Can you inline your answers so I can follow? aslak

Re: [rspec-users] Problem with spec -l

2007-09-07 Thread aslak hellesoy
On 9/7/07, Tom Locke [EMAIL PROTECTED] wrote: Hiya I used to be able to run a single example with spec -l line-num spec file But now it always just runs 0 tests when I give this option. It works fine for me, but I'm not sure what version you're referring to or how to exactly reproduce

Re: [rspec-users] fixtures in before(:all)

2007-09-08 Thread aslak hellesoy
On 9/7/07, Geoffrey Wiseman [EMAIL PROTECTED] wrote: I was planning on using a fixture within a description that didn't modify the fixture, so I put it in a before(:all) block: describe Customer, xml do fixtures :customers before(:all) do one = customers(:one) end # ...

Re: [rspec-users] fixtures in before(:all)

2007-09-08 Thread aslak hellesoy
On 9/8/07, Scott Taylor [EMAIL PROTECTED] wrote: On Sep 7, 2007, at 3:31 PM, Geoffrey Wiseman wrote: I was planning on using a fixture within a description that didn't modify the fixture, so I put it in a before(:all) block: describe Customer, xml do fixtures :customers

Re: [rspec-users] Going beyond the default html formatter/report?

2007-09-09 Thread aslak hellesoy
On 9/9/07, Priit Tamboom [EMAIL PROTECTED] wrote: Hi! I wonder does anybody planning to go beyond the default html formatter/report? The current html report is nice and green but what about to go a little silly and enable also user input. For example to let customer to add a new pending

Re: [rspec-users] Failing to raise an exception in a stub

2007-09-13 Thread aslak hellesoy
On 9/13/07, Jarkko Laine [EMAIL PROTECTED] wrote: I've come across rather strange behaviour when trying to raise an exception in a stubbed method. I'm speccing the behaviour of a Rails create action, where I'm using save! to catch failed saves. In the case of working save, I'm using the

Re: [rspec-users] rake spec:doc returns NO NAME (due to --dry-run) for each specify block

2007-09-16 Thread aslak hellesoy
This happens if you have it blocks with no name. RSpec tries to generate names based on the code inside, but with dry run it isn't executed, so it can't. But maybe you don't have empty it blocks? I'm just guessing here... Aslak On 9/16/07, Christopher D. Pratt [EMAIL PROTECTED] wrote: I went

Re: [rspec-users] rake spec:doc returns NO NAME (due to --dry-run) for each specify block

2007-09-17 Thread aslak hellesoy
reproduce what you see Thanks, Chris Pratt On 9/16/07, aslak hellesoy [EMAIL PROTECTED] wrote: This happens if you have it blocks with no name. RSpec tries to generate names based on the code inside, but with dry run it isn't executed, so it can't. But maybe you don't have empty

Re: [rspec-users] Standardize environment between specs containing class defs

2007-09-21 Thread aslak hellesoy
You can have a global after block in your spec_helper.rb that undefines all such constants. Then you just have to remember to add these constants to some global array whenever you define them. a On 9/21/07, Matt Margolis [EMAIL PROTECTED] wrote: I have some specs that involve the use of eval

Re: [rspec-users] rcov including ruby lib

2007-09-24 Thread aslak hellesoy
On 9/24/07, Brandon Keepers [EMAIL PROTECTED] wrote: When I run spec:rcov on my continuous integration server, the rcov report is including many other libraries in the report, including some from standard lib and gems. Has anyone else had this problem or have any ideas for how to limit it

Re: [rspec-users] specing system

2007-10-13 Thread aslak hellesoy
On 10/13/07, Priit Tamboom [EMAIL PROTECTED] wrote: Hi! Having some wine on Saturday and just playing around writing some ruby script: * have you spec any 'system' method? As long I know it just returns false or true and everything else is just out of reach; prove me I'm wrong :-) it

Re: [rspec-users] Note on Rails 2.0 Preview

2007-10-29 Thread aslak hellesoy
On 10/29/07, Jamal Soueidan [EMAIL PROTECTED] wrote: Steve Ross (CWD) wrote: Make sure you get a relatively current version of rspec or you will get: /Users/me/rails/ubb/vendor/rails/activerecord/lib/../../activesupport/ lib/active_support/dependencies.rb:263:in `load_missing_constant':

Re: [rspec-users] no speed up with spec_server

2007-11-01 Thread aslak hellesoy
On 11/1/07, Jeremy Stephens [EMAIL PROTECTED] wrote: Hey guys, I'm running spec_server and using --drb with my specs in Rails, and I'm seeing virtually no speed up. I'm using rspec/rspec_on_rails trunk. Is there something I'm doing wrong? It's a regression I'm planning to fix this weekend

Re: [rspec-users] Can't delete app/helpers

2007-11-01 Thread aslak hellesoy
A stacktrace would help On 11/1/07, Chris Olsen [EMAIL PROTECTED] wrote: I would like to remove some unused helpers from the app/helpers dir, but when I do so my specs fail. Why is this? I don't see where those helpers are referenced within the tests. Is there a way to delete these unused

Re: [rspec-users] Specifying mixins

2007-11-01 Thread aslak hellesoy
just a short advice: describe MyModule do it should do something do # The module is automatically mixed into your spec end end Aslak On 11/1/07, Tom Stuart [EMAIL PROTECTED] wrote: Hi folks, Can anyone share some accumulated wisdom about the best way to spec mixins in general, and

Re: [rspec-users] autometric gem

2007-11-10 Thread aslak hellesoy
On 11/10/07, Ben Burkert [EMAIL PROTECTED] wrote: I'm working on tool to automatically run code metrics in the same way as autotest. It's runs rcov, flog, and saikuro right now, and works with rspec and rails. It's hosted at rubyforge: http://rubyforge.org/projects/autometric/ I've got a

Re: [rspec-users] be_success misleading

2007-11-10 Thread aslak hellesoy
be_success has the same semantics (and uses) Response#success? and that's not our API, but Rails' If you don't like Rails' semantics you can make your own matcher, but I don't want to invent a whole new API on top of Rails in the official Spec::Rails. Aslak On Nov 10, 2007 5:31 PM, Steve [EMAIL

Re: [rspec-users] Autotest with rspec HTML output

2007-11-11 Thread aslak hellesoy
Where would the HTML report be displayed? On Nov 11, 2007 6:38 AM, Ben Mabey [EMAIL PROTECTED] wrote: Hey all, I was just wondering if any one has played around with getting autotest's rspec integration working with rspec's HTML output. I really like how in the rspec textmate bundle the

Re: [rspec-users] Autotest with rspec HTML output

2007-11-11 Thread aslak hellesoy
proprietary. The qlmanage wouldn't provide much value beyond growl bubbles. You wanted to click on the HTML and go to the editor right? Aslak aslak hellesoy wrote: Where would the HTML report be displayed? On Nov 11, 2007 6:38 AM, Ben Mabey [EMAIL PROTECTED] wrote: Hey all, I was just

Re: [rspec-users] Who's using --format rdoc

2007-11-11 Thread aslak hellesoy
- a file you can include in your RDocs. Since it's not producing what RDoc needs, I'd like to retire it. Aslak On Nov 11, 2007, at 3:39 PM, aslak hellesoy wrote: I'm doing some housekeeping and just realised that the rdoc formatter produces gibberish: http://rspec.rubyforge.org/rdoc

Re: [rspec-users] Test case for file import

2007-11-12 Thread aslak hellesoy
On Nov 12, 2007 11:36 AM, KarniRevuri [EMAIL PROTECTED] wrote: I want to write below specs specify The system allows users to import a pre-formatted CSV file into project. specify Each row in the spreadsheet is imported as one new Task. specify The import WILL NOT update existing tasks.

Re: [rspec-users] Test case for file import

2007-11-13 Thread aslak hellesoy
{Task.count}.from(2).to(6) lambda do Task.import_from_csv(csv) end.should_not change {Task.count} end end HTH, Aslak On 11/13/07, Karni Karni [EMAIL PROTECTED] wrote: aslak hellesoy wrote: On Nov 12, 2007 11:36 AM, KarniRevuri [EMAIL PROTECTED] wrote: typical windows file

Re: [rspec-users] RSpec on Rails 2.0

2007-11-14 Thread aslak hellesoy
On Nov 14, 2007 8:37 PM, Kyle Hargraves [EMAIL PROTECTED] wrote: On Nov 14, 2007 12:32 PM, David Chelimsky [EMAIL PROTECTED] wrote: http://rspec.rubyforge.org/documentation/rails/install.html CURRENT means the latest release, not the trunk. 1.0.8 was out months ago - obviously not

Re: [rspec-users] Down with Lambda!!

2007-11-17 Thread aslak hellesoy
On Nov 18, 2007 12:40 AM, Steven Garcia [EMAIL PROTECTED] wrote: Rspec is all about using natural language to define behavior. In this context, I feel that lambda is sorely out of place. I was chatting on #irc and a pal of mine (wycats) proposed an interesting alternative: alias_method

Re: [rspec-users] helper methods starting with should

2007-11-18 Thread aslak hellesoy
On Nov 18, 2007 4:59 PM, David Chelimsky [EMAIL PROTECTED] wrote: Hi all, As an experiment in playing nice with others, we've added the ability in rspec's trunk to do this: class ThingExamples Spec::ExampleGroup def should_do_stuff ... end end This is how rspec 0.1 worked,

Re: [rspec-users] describe scope

2007-11-21 Thread aslak hellesoy
On 11/21/07, Mark Van De Vyver [EMAIL PROTECTED] wrote: Hi, Thanks for the prompt responses... On Nov 22, 2007 1:18 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Nov 21, 2007 1:07 AM, Mark Van De Vyver [EMAIL PROTECTED] wrote: Hi, Googling 'RSpec describe scope' didn't yield much, so

Re: [rspec-users] Issues related to jruby 1.0.2/edge rails and rspec head

2007-11-22 Thread aslak hellesoy
On Nov 22, 2007 4:50 PM, Stefan Magnus Landrø [EMAIL PROTECTED] wrote: Hi, We just spent half an afternoon figuring out why jruby -S rake spec didn't generate any output at all (no warnings) on an edge rails app. We were seeing different behaviour on different boxes, and after a while figured

Re: [rspec-users] Possible Problem with RSpec and

2007-11-28 Thread aslak hellesoy
On 11/28/07, Stefan Magnus Landrø [EMAIL PROTECTED] wrote: We saw some annoying behavior related to pending tests. Maybe you could delete it and rerun your specs? An error typically indicates that you have some sort of error in your code - failing tests should not cause rake to abort. It

Re: [rspec-users] Possible Problem with RSpec and

2007-11-29 Thread aslak hellesoy
On Nov 29, 2007 11:23 AM, Stefan Magnus Landrø [EMAIL PROTECTED] wrote: It seems like setting up expectations in before blocks, in combination with a pending example, makes rake return non-0 We had code similar to this: describe Model do before do OtherModel.should_receive

Re: [rspec-users] Unexpected message on :attr_accessor

2007-12-04 Thread aslak hellesoy
On Dec 4, 2007 8:02 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Dec 4, 2007 11:49 AM, schleg [EMAIL PROTECTED] wrote: This may be a dumb noob issue, but I haven't found any answers while seaching the forum-- I have a controller method def edit @user = User.find

Re: [rspec-users] Fresh rspec on rails install blows up

2007-12-11 Thread aslak hellesoy
On Dec 11, 2007 4:49 PM, Keith McDonnell [EMAIL PROTECTED] wrote: Hi there, I installed the rspec on rails plugin for a new project today and guess what -- it blows up! Guess what - when RSpec 1.0.8 was released (August 12 2007), the latest release of RoR was 1.2.3 (March 13 2007). Can you

Re: [rspec-users] Rspec 1.0.8 with Rails 2.0

2007-12-12 Thread aslak hellesoy
On Dec 12, 2007 12:48 AM, Yitzhak Bar Geva [EMAIL PROTECTED] wrote: Is it OK to go ahead and generate a Rails 2.0 project with RSpec 1.0.8? Am I likely to run into problems? When we released RSpec 1.0.8 there was no Rails 2.0. We always have to do a fair amount of tweaks to keep up with Rails,

Re: [rspec-users] Change in isolation behaviour 1.08 - 1.10 ?

2007-12-17 Thread aslak hellesoy
On Dec 17, 2007 2:13 PM, Jeroen Houben [EMAIL PROTECTED] wrote: Hi, I just moved from 1.08 to 1.10 and now have one example failing, which, under 1.08, passed. Is the due to a change in behaviour? Here's my spec (removed some passing examples) require File.dirname(__FILE__) +

Re: [rspec-users] Change in isolation behaviour 1.08 - 1.10 ?

2007-12-17 Thread aslak hellesoy
On Dec 17, 2007 2:13 PM, Jeroen Houben [EMAIL PROTECTED] wrote: Hi, I just moved from 1.08 to 1.10 and now have one example failing, which, under 1.08, passed. Is the due to a change in behaviour? Here's my spec (removed some passing examples) require File.dirname(__FILE__) +

Re: [rspec-users] Change in isolation behaviour 1.08 - 1.10 ?

2007-12-17 Thread aslak hellesoy
On Dec 17, 2007 5:58 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Dec 17, 2007 10:55 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Dec 17, 2007 4:12 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Dec 17, 2007 9:06 AM, Jeroen Houben [EMAIL PROTECTED] wrote: ... Just received

Re: [rspec-users] JtestR 0.1 released

2007-12-28 Thread aslak hellesoy
On Dec 28, 2007 10:46 PM, Ola Bini [EMAIL PROTECTED] wrote: JtestR allows you to test your Java code with Ruby frameworks. Homepage: http://jtestr.codehaus.org Download: http://dist.codehaus.org/jtestr Thanks for the pointer and the code Ola - this is REALLY cool. I'll definitely take a

Re: [rspec-users] Converting to Rails 2.0.2

2007-12-29 Thread aslak hellesoy
On Dec 28, 2007 11:56 PM, s.ross [EMAIL PROTECTED] wrote: I'm moving an older project to Rails 2.0.2 and ran into a roadblock on the version matching. Here's script/console session: Spec::VERSION::REV = 1785 Spec::Rails::VERSION::REV NoMethodError: undefined method `run=' for

Re: [rspec-users] How to run stories with `spec' command?

2007-12-31 Thread aslak hellesoy
On Dec 31, 2007 11:55 AM, Chiyuan Zhang [EMAIL PROTECTED] wrote: Hi, all! I have a story steps array.rb and the story array.story. I can run it with ruby array.rb But when I execute spec array.rb nothing happened. I'm wondering how can I use spec command to execute stories? You

Re: [rspec-users] patch for html display

2008-01-04 Thread aslak hellesoy
Please register this on http://rspec.lighthouseapp.com/ We *will* forget to apply this patch if you don't ;-) Thanks, Aslak On Jan 4, 2008 7:15 AM, Tim Harper [EMAIL PROTECTED] wrote: All, I've found that the html view for the rspec formatter falls to pieces with Rails 2.02 and rspec 1.10.

Re: [rspec-users] status/exit code for story runner

2008-01-05 Thread aslak hellesoy
On Jan 5, 2008 2:39 AM, Ben Mabey [EMAIL PROTECTED] wrote: Hi All, I'm trying to incorporate our stories into our build for our cruisecrontrol.rb projects and it looks like the Story Runner always returns a 0 (zero) no matter if the tests pass or fail. This is in contrast to the actual and

Re: [rspec-users] Varying test data

2008-01-11 Thread aslak hellesoy
On Jan 11, 2008 11:33 AM, Kerry Buckley [EMAIL PROTECTED] wrote: This isn't specific to RSpec, but is hopefully on-topic for this list. I like (especially when ping pong pairing) to write a spec, then write the smallest amount of code I can to pass it (especially when ping pong pairing).

Re: [rspec-users] TextMate bundle not compatible with nested specs for running focused tests?

2008-01-13 Thread aslak hellesoy
On Jan 14, 2008 12:47 AM, Matthew Windwer [EMAIL PROTECTED] wrote: Seems like the recently updated (and wonderful) textmate bundle does not take into account running individual tests that are in nested specs. Anybody else notice this? Any ideas? I have noticed it too. Please file a bug

Re: [rspec-users] How to trace running spec

2008-01-14 Thread aslak hellesoy
On Jan 14, 2008 3:47 AM, Kero van Gelder [EMAIL PROTECTED] wrote: I have a spec that is hanging when it is running. How do I get the rspec runner to show what specs it's running so I can which one is hanging? I am calling the runner from my rails project. Which formatter ate you

Re: [rspec-users] Quiet Backtrace in RSpec

2008-01-19 Thread aslak hellesoy
On Jan 19, 2008 4:16 AM, Jed Hurt [EMAIL PROTECTED] wrote: I'm using RSpec on Rails and would like to clean up the backtraces, so I went looking for an RSpec equivalent to ThoughtBot's Quiet Backtrace gem. I found Spec::Runner::QuietBacktraceTweaker in the RDOCS, but I can't figure out how to

Re: [rspec-users] DRYing up stories

2008-01-23 Thread aslak hellesoy
On Jan 23, 2008 10:45 PM, Neil M. Young [EMAIL PROTECTED] wrote: I'm finding that I'm writing sets of very similar scenarios to check access permissions for each of my actions. Does anyone have suggestions on how to dry this up: Beware that DRY has a cost. Clarity and readability. David's

Re: [rspec-users] DRYing up stories

2008-01-23 Thread aslak hellesoy
large amounts of data than plain English. :) Do you understand the point I'm trying to make? I totally get your point. This is where FIT shines (or maybe Ryan's Matrix). Aslak -Ben aslak hellesoy wrote: On Jan 23, 2008 10:45 PM, Neil M. Young [EMAIL PROTECTED] wrote: I'm finding

Re: [rspec-users] colored output for stories?

2008-02-10 Thread aslak hellesoy
On Feb 8, 2008 9:50 PM, Neil M. Young [EMAIL PROTECTED] wrote: sorry if this is documented somewhere, but do stories support colored output? neither -c nor --color are working for me. It works for me. What's your environment? -- View this message in context:

Re: [rspec-users] [newbie] rspec textmate bundle problem

2008-02-25 Thread aslak hellesoy
There is also this: http://rspec.info/documentation/tools/extensions/editors/textmate.html Aslak On Tue, Feb 26, 2008 at 12:41 AM, Oliver Barnes [EMAIL PROTECTED] wrote: ..2 seconds after posting I found this thread from the peepcode users group

Re: [rspec-users] bad specs better than none?

2008-02-25 Thread aslak hellesoy
On Tue, Feb 26, 2008 at 3:18 AM, Giles Bowkett [EMAIL PROTECTED] wrote: Hi - I've got a bunch of people using specs at a company. Everybody is writing specs, but people are not really practicing BDD. As in, the specs are there, but it doesn't go, write spec, write code, repeat. I recently

Re: [rspec-users] Pretty story output for non-Rails project

2008-03-04 Thread aslak hellesoy
On Tue, Mar 4, 2008 at 2:18 PM, Ed Howland [EMAIL PROTECTED] wrote: On Tue, Mar 4, 2008 at 12:19 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Mon, Mar 3, 2008 at 11:41 PM, George Anderson [EMAIL PROTECTED] wrote: I'm taking my first fledgling steps driving a new ruby (non-rails)

Re: [rspec-users] Pretty story output for non-Rails project

2008-03-04 Thread aslak hellesoy
On Tue, Mar 4, 2008 at 3:32 PM, Ed Howland [EMAIL PROTECTED] wrote: On Tue, Mar 4, 2008 at 7:24 AM, aslak hellesoy [EMAIL PROTECTED] wrote: This is in the latest release. Just pass --format html on the ocmmand line. ARGS is read by one of the internal files in RSpec - not all.rb

Re: [rspec-users] Pretty story output for non-Rails project

2008-03-04 Thread aslak hellesoy
On Tue, Mar 4, 2008 at 6:11 PM, s.ross [EMAIL PROTECTED] wrote: On Mar 4, 2008, at 5:24 AM, aslak hellesoy wrote: This is in the latest release. Just pass --format html on the ocmmand line. ARGS is read by one of the internal files in RSpec - not all.rb. Try --help too. Aslak I

Re: [rspec-users] RSpec and RCov with JRuby

2008-03-17 Thread aslak hellesoy
On Mon, Mar 17, 2008 at 1:27 PM, Tobias Torkler [EMAIL PROTECTED] wrote: Hi, I am using JRuby (trunk) and wrote a bunch of specifications for my code. Everything works fine so far. Now I am trying to integrate RCov in my test run. I have installed RCov without the C extensions. I tried

Re: [rspec-users] RSpec and RCov with JRuby

2008-03-17 Thread aslak hellesoy
what order things are happening in, or are you trying to figure out why you're not getting an RCov report? Aslak Am 17.03.2008 um 15:43 schrieb aslak hellesoy: On Mon, Mar 17, 2008 at 1:27 PM, Tobias Torkler [EMAIL PROTECTED] wrote: Hi, I am using JRuby (trunk) and wrote

Re: [rspec-users] RSpec and RCov with JRuby

2008-03-17 Thread aslak hellesoy
bypassing the building of the C extensions? Aslak Am 17.03.2008 um 16:10 schrieb aslak hellesoy: On Mon, Mar 17, 2008 at 3:50 PM, Tobias Torkler [EMAIL PROTECTED] wrote: This is not Test::Unit output! The following text - taken from your first email - is Test::Unit output

Re: [rspec-users] sharing story steps

2008-03-20 Thread aslak hellesoy
On Thu, Mar 20, 2008 at 5:44 AM, Joe Van Dyk [EMAIL PROTECTED] wrote: Hi, How can I have a common set of steps that all my stories share? i.e. My stories often start out looking like this: Given a user Joe Given a user Jordan then: put this in steps/users.rb: steps_for(:user) do

Re: [rspec-users] Has anyone seen this strange mock behaviour?

2008-03-24 Thread aslak hellesoy
On Mon, Mar 24, 2008 at 4:38 PM, Rick DeNatale [EMAIL PROTECTED] wrote: I've got this example 'group': before(:all) do @mock_user = mock_model(User) @mock_email_field = mock_model(EmailField, :user = @mock_user) @mock_email_field.stub!(:user).and_return(@mock_user)

Re: [rspec-users] Plaint Text Stories Comments in output?

2008-03-25 Thread aslak hellesoy
On Tue, Mar 25, 2008 at 5:56 PM, Corey Haines [EMAIL PROTECTED] wrote: Is there an easy way to get a story output that includes comment text inside the Scenario? Plain text stories are parsed and turn into objects, then written out again. There is no way to capture unknown lines for now unless

Re: [rspec-users] story runner output

2008-03-26 Thread aslak hellesoy
On Wed, Mar 26, 2008 at 6:35 PM, Joe Van Dyk [EMAIL PROTECTED] wrote: Is it possible to optionally reduce the story runner output to just dots or something? Lots of stories makes it difficult to see previous test results. Anything is possible, but you have to implement a

Re: [rspec-users] How do you mock an object that you don't have access to?

2008-03-28 Thread aslak hellesoy
On Fri, Mar 28, 2008 at 8:12 PM, Pat Maddox [EMAIL PROTECTED] wrote: On Fri, Mar 28, 2008 at 11:32 AM, Luis Lavena [EMAIL PROTECTED] wrote: On Fri, Mar 28, 2008 at 3:25 PM, David Beckwith [EMAIL PROTECTED] wrote: Hi, How can I mock the go method of class B so that it returns

Re: [rspec-users] Welcome Pat Maddox

2008-04-04 Thread aslak hellesoy
On 4/4/08, Luis Lavena [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 11:35 AM, Patrick Meunier [EMAIL PROTECTED] wrote: This is a great news! Congratulations Pat. +1 on that, The bdd-force within Pat is strong, and is good to see he is joining the good side of the force :-) Pat is a

Re: [rspec-users] Multi-line steps

2008-04-09 Thread aslak hellesoy
On Wed, Apr 9, 2008 at 12:31 PM, Tim Haines [EMAIL PROTECTED] wrote: Hi Ashley, What's your use case? I'm curious... Tim. I'm working on a Treetop (http://treetop.rubyforge.org/) implementation of the Story parser. Please file any suggestions for improvements to the story format to

Re: [rspec-users] External Dependencies (was Multi-line steps)

2008-04-09 Thread aslak hellesoy
On Wed, Apr 9, 2008 at 2:41 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Apr 9, 2008, at 8:13 AM, aslak hellesoy wrote: I'm working on a Treetop (http://treetop.rubyforge.org/) implementation of the Story parser. Hey Aslak, while I love the idea of exploiting treetop

Re: [rspec-users] Story runner + selenium-rc + wait_for_xxxx

2008-04-16 Thread aslak hellesoy
On Wed, Apr 16, 2008 at 9:57 PM, Andy Watts [EMAIL PROTECTED] wrote: Hi, I've got a story working with selenium-rc, but am stuck writing ajax-aware steps. How are people coding their story steps to wait for an Ajax event to complete? Have you asked the selenium list about this?

Re: [rspec-users] Mocking Net::SSH connections

2008-04-21 Thread aslak hellesoy
On Mon, Apr 21, 2008 at 8:03 AM, Jamie D [EMAIL PROTECTED] wrote: Hi, So I'm stuck again with creating a mock for Net::SSH, I've managed to mock the call to Net::SSH.start and yield the Net::SSH mock but I am totally stuck with mocking the session.shell.sync call and will also need to

Re: [rspec-users] Mocking Net::SSH connections

2008-04-21 Thread aslak hellesoy
On Mon, Apr 21, 2008 at 8:03 AM, Jamie D [EMAIL PROTECTED] wrote: Hi, So I'm stuck again with creating a mock for Net::SSH, I've managed to mock the call to Net::SSH.start and yield the Net::SSH mock but I am totally stuck with mocking the session.shell.sync call and will also need to

Re: [rspec-users] JRuby, RSpec, rcov

2008-04-21 Thread aslak hellesoy
On Mon, Apr 21, 2008 at 4:05 PM, [EMAIL PROTECTED] wrote: Do you guys know of any working version combination of JRuby, RSpec and rcov? Doesn't look like rcov 0.8.1.2, RSpec 1.1.3, JRuby 1.1 is one of them. Have you tried JRuby 1.1 + RCov 0.8.1.2 in pure mode (without RSpec?) Aslak --

Re: [rspec-users] Rspec Stories / Selenium Nightmare

2008-05-09 Thread aslak hellesoy
I have just git-svn'ed the code that was formerly in http://rubyforge.org/projects/rspec-ext to GitHub: http://github.com/aslakhellesoy (rspec-distributed and rspec-ui) I haven't maintained these in a while, so they might be a little broken. Hopefully someone will clone and improve them. FYI:

Re: [rspec-users] rspec license plate

2008-06-16 Thread aslak hellesoy
On Mon, Jun 16, 2008 at 11:52 PM, David Chelimsky [EMAIL PROTECTED] wrote: Cool! Hard to make out, but is that an Illinois plate? On Jun 16, 2008, at 4:39 PM, Daniel Barry wrote: Noteworthy is also that it's a muda Toyota. -It has one pending. Aslak I was driving to my parents' house this

Re: [rspec-users] Can't access actions of a singular nested resource

2008-07-31 Thread aslak hellesoy
On Thu, Jul 31, 2008 at 4:06 PM, Bastien [EMAIL PROTECTED] wrote: I can't figure out what I do wrong there, I have a nested controller which is defined as a singular resource, the routing works properly, but inside my specs the request never goes through the show action. I keep on getting

Re: [rspec-users] Can't access actions of a singular nested resource

2008-08-01 Thread aslak hellesoy
On Fri, Aug 1, 2008 at 10:41 AM, Bastien [EMAIL PROTECTED] wrote: Thanks for your help Aslak, but I still didn't manage to make it pass get :show, :id=34 it sends me this error then : No route matches {:action=show, :controller=surveys/report, :id=34} Try rake routes, and also try to spec

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread aslak hellesoy
On Wed, Aug 13, 2008 at 2:25 AM, Zach Dennis [EMAIL PROTECTED] wrote: Sometimes I don't have a full need to make a class to do something, yet I want something readable and concise. This is influenced from the joys of JavaScript. Today I made this happen. Love it, like it, hate it, WDYT? As

Re: [rspec-users] WDYT, simple, anonymous story listeners?

2008-08-13 Thread aslak hellesoy
On Wed, Aug 13, 2008 at 5:18 PM, Zach Dennis [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 11:00 AM, aslak hellesoy [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 4:50 PM, Zach Dennis [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 8:29 AM, aslak hellesoy [EMAIL PROTECTED] wrote

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-18 Thread aslak hellesoy
On Tue, Aug 12, 2008 at 6:45 PM, Matt Wynne [EMAIL PROTECTED] wrote: Can I help the project by writing some docs about the plain-text story runner for the rspec.info website? It would surely help me to get it wired in my own mind if I have to write it up for the world. Would this be helpful /

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-18 Thread aslak hellesoy
On Mon, Aug 18, 2008 at 1:06 PM, Matt Wynne [EMAIL PROTECTED] wrote: The RSpec Story runner is likely to be deprecated in favour of the new feature runner (temporarily called Cucumber). http://www.nabble.com/-ANN--Cucumber-td18876816.html And this is going to be distributed as a separate

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-18 Thread aslak hellesoy
, at 12:11, aslak hellesoy wrote: On Mon, Aug 18, 2008 at 1:06 PM, Matt Wynne [EMAIL PROTECTED] wrote: The RSpec Story runner is likely to be deprecated in favour of the new feature runner (temporarily called Cucumber). http://www.nabble.com/-ANN--Cucumber-td18876816.html And this is going

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-18 Thread aslak hellesoy
On Mon, Aug 18, 2008 at 2:29 PM, aidy lewis [EMAIL PROTECTED] wrote: Hi Aslak 2008/8/18 aslak hellesoy [EMAIL PROTECTED]: * How to use with Watir gem sources --add http://gems.github.com/ gem install aslakhellesoy-cucumber I am unable top find the Watir and Cucumber example I may have

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-18 Thread aslak hellesoy
On Mon, Aug 18, 2008 at 3:02 PM, aidy lewis [EMAIL PROTECTED] wrote: Aslak Look in the examples/watir directory: http://github.com/aslakhellesoy/cucumber/tree/master/examples/watir Aslak OK. Can I expand on this for your example? What do you mean by expand? Aslak Aidy

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-18 Thread aslak hellesoy
On Mon, Aug 18, 2008 at 3:31 PM, aidy lewis [EMAIL PROTECTED] wrote: Aslak 2008/8/18 aslak hellesoy [EMAIL PROTECTED]: What do you mean by expand? Aslak I was going to give a more detailed example... That would be awesome. If you're familiar with Git you can clone my Cucumber

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-18 Thread aslak hellesoy
On Mon, Aug 18, 2008 at 9:46 PM, Jim Morris [EMAIL PROTECTED] wrote: aslak hellesoy wrote: The RSpec Story runner is likely to be deprecated in favour of the new feature runner (temporarily called Cucumber). http://www.nabble.com/-ANN--Cucumber-td18876816.html This is REALLY bad news!! I

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-20 Thread aslak hellesoy
On Wed, Aug 20, 2008 at 8:32 AM, Jim Morris [EMAIL PROTECTED] wrote: Aslak Hellesøy wrote: I'd like to have a before story and after story as well as a before scenario and after scenario. Right now I do global setup for a story, and cleanup when the story is done. I also do a setup before

Re: [rspec-users] Story Runner Example with Watir

2008-08-20 Thread aslak hellesoy
On Wed, Aug 20, 2008 at 2:19 PM, aidy lewis [EMAIL PROTECTED] wrote: Lies here gem install watir http://wiki.openqa.org/display/WTR/Example+Frameworks I will need to port this to Cucumber That would be great! Would you consider storing the code in Cucumber's watir example directory?

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-20 Thread aslak hellesoy
On Wed, Aug 20, 2008 at 4:20 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Wed, Aug 20, 2008 at 9:04 AM, Jonathan Linowes [EMAIL PROTECTED] wrote: On Aug 20, 2008, at 2:20 AM, Aslak Hellesøy wrote: (In Cucumber it's Feature, not Story) no offense, but while you're being picky about

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-21 Thread aslak hellesoy
On Wed, Aug 20, 2008 at 6:24 PM, Ben Mabey [EMAIL PROTECTED] wrote: aslak hellesoy wrote: The RSpec Story runner is likely to be deprecated in favour of the new feature runner (temporarily called Cucumber). http://www.nabble.com/-ANN--Cucumber-td18876816.html The RSpec Story runner

Re: [rspec-users] story vs feature (was Documentation for Plain-Text Stories)

2008-08-25 Thread aslak hellesoy
On Mon, Aug 25, 2008 at 5:12 PM, Jonathan Linowes [EMAIL PROTECTED] wrote: On Aug 24, 2008, at 12:31 PM, David Chelimsky wrote: In terms of the feature (which is the report), I see this as just another scenario. In terms of driving development and estimating effort, I see this as a new

Re: [rspec-users] story vs feature (was Documentation for Plain-Text Stories)

2008-08-25 Thread aslak hellesoy
On Mon, Aug 25, 2008 at 5:37 PM, Jonathan Linowes [EMAIL PROTECTED] wrote: On Aug 25, 2008, at 11:19 AM, aslak hellesoy wrote: On Mon, Aug 25, 2008 at 5:12 PM, Jonathan Linowes [EMAIL PROTECTED] wrote: On Aug 24, 2008, at 12:31 PM, David Chelimsky wrote: In terms of the feature (which

Re: [rspec-users] Documentation for Plain-Text Stories

2008-08-27 Thread aslak hellesoy
did and will post it to the Cucumber wiki next week when I have some time to proofread it. Cheers, Aslak Thanks, -- Joseph Wilk http://www.joesniff.co.uk aslak hellesoy wrote: On Wed, Aug 20, 2008 at 6:24 PM, Ben Mabey [EMAIL PROTECTED] wrote: * How to use without Rails wiki be better

Re: [rspec-users] Cucumber: Running a single feature / scenario

2008-09-01 Thread aslak hellesoy
On Mon, Sep 1, 2008 at 9:45 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Mon, Sep 1, 2008 at 12:08 PM, Matt Wynne [EMAIL PROTECTED] wrote: Am taking cucumber for a first spin today - first impressions are good. How do I go about running a single feature or scenario so I don't have to run

  1   2   3   4   5   >