Re: [rspec-users] Not running correct specs under autotest:

2008-06-05 Thread Tom Stuart
On 4 Jun 2008, at 15:14, Matt Mower wrote: On Wed, Jun 4, 2008 at 3:06 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: Rails 2.1 supports plugins from git. Yep 2.1 and I used script/plugin to install from git this time. That's new again to me since I've been using piston for quite a while (or s

Re: [rspec-users] any_instance

2008-06-05 Thread Matt Mower
HI Scott. On Thu, Jun 5, 2008 at 3:05 AM, Scott Taylor <[EMAIL PROTECTED]> wrote: > There's a general idea with rspec (and one which probably isn't present in > other testing frameworks) that says that testing *should* influence your > design. I'm sure this is one of the reasons that David consid

[rspec-users] Using and_yield to pass multiple or no iterations

2008-06-05 Thread Doug Livesey
Hi, imagine there's a class called Egg which has the following method (which calls another method): def do_thing has_iterated = false self.each_row do |row| has_iterated = true unless has_iterated end has_iterated end Stupid code, I know. I have two questions with it. The first is

Re: [rspec-users] any_instance

2008-06-05 Thread David Chelimsky
On Jun 4, 2008, at 9:05 PM, Scott Taylor wrote: There's a general idea with rspec (and one which probably isn't present in other testing frameworks) that says that testing *should* influence your design. This isn't really a framework issue - it's about TDD. Remember that BDD started off as

Re: [rspec-users] any_instance

2008-06-05 Thread David Chelimsky
On Jun 5, 2008, at 5:07 AM, Matt Mower wrote: Does your patch work? I wasn't clear whether David was saying that it doesn't. The patch works but is incomplete and duplicates a bunch of code. You should probably be able to use it as/is for what you need. Cheers, David _

[rspec-users] additional logging

2008-06-05 Thread aidy lewis
Hi, I am using the 'spec/story' module with Fire(Watir). Is there additional logging? I don't want to do this: Then "the resultant links are displayed with the search text in each description" do browser.links.each do |lnk| if lnk.id =~ /programmeLink/ lnk.click sle

Re: [rspec-users] xhr :post giving wrong number of arguments on rails 2.1?

2008-06-05 Thread Zach Dennis
Use xml_http_request in your stories rather than xhr. I believe the "xhr" method is aliased to the wrong method... I haven't looked to see if this is a Rails issue or a rspec-rails issue, Zach On Thu, Jun 5, 2008 at 1:33 AM, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > Getting a strange error. > I

Re: [rspec-users] Using and_yield to pass multiple or no iterations

2008-06-05 Thread John D. Hume
On Thu, Jun 5, 2008 at 5:46 AM, Doug Livesey <[EMAIL PROTECTED]> wrote: > I have two questions with it. The first is, would it be possible to set > it up to test the case when each_row operates on an empty Array? If there were no rows, each_row wouldn't yield at all, so you should just be able to

[rspec-users] RSpec Story - SystemStackError: stack level too deep

2008-06-05 Thread Ben Men
I have a story that executes the following (as an example to show the bug I'm experiencing): -- Given "I have a fake post saved" do @postCount = Post.find(:all).length @post = Post.new @post.employee_id = 123 @post.name = "Name of th

Re: [rspec-users] xhr :post giving wrong number of arguments on rails 2.1?

2008-06-05 Thread Mikel Lindsaar
On Fri, Jun 6, 2008 at 1:39 AM, Zach Dennis <[EMAIL PROTECTED]> wrote: > Use xml_http_request in your stories rather than xhr. I believe the "xhr" > method is aliased to the wrong method... I haven't looked to see if this is > a Rails issue or a rspec-rails issue, > Thanks, that worked. Mikel __

Re: [rspec-users] Anyone seen weird autotest behaviour on trunk?

2008-06-05 Thread Hans de Graaff
On Wed, 2008-06-04 at 03:37 -0500, David Chelimsky wrote: > I believe this is now fixed in > http://github.com/dchelimsky/rspec/commit/2b474ac > . > > If any of you can still reproduce this, please let me know. I tracked this down on Wednesday to the same code. However, this patch doesn't quit

[rspec-users] `exit?': undefined method `run?' for Test::Unit:Module (NoMethodError)?

2008-06-05 Thread kasutaja
Why am I getting this error if running from Netbeans or just from command line with executing blah_spec.rb? If I run with spec bla blah blah_spec.rb then it's fine. . Finished in 0.264 seconds 1 example, 0 failures c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec.rb:27:in `exit?': undefined