Re: [rspec-users] Why RSpec?

2009-04-22 Thread Stephen Eley
On Wed, Apr 22, 2009 at 7:25 AM, Amos King wrote: > I wasn't thinking about a gun.  I was just wondering if there is some > underlying reason that I'm missing.  Is there a background structure > that I'm not grasping?  Is there a huge piece of functionality that > I'm missing?  Is it faster than T

Re: [rspec-users] Cucumber - step negating another expecting step

2009-04-22 Thread aslak hellesoy
On Thu, Apr 23, 2009 at 12:34 AM, Joaquin Rivera Padron wrote: > ok, let's say: > > Then /should see "(.+)"/ do |text| ># a binary step, easily negable > end > > Then /I deny some steps/ do > # really not so readable > Not Then "should see \"your are not log in\"" > > Then "some other st

Re: [rspec-users] [Cucumber] Options in tables

2009-04-22 Thread Jonathan Linowes
I'm no mathematician, but perhaps there's some notation from set theory that could be helpful? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [Cucumber] Options in tables

2009-04-22 Thread Nigel Thorne
> (on a aside note: what would examples look like if both ideas get > implemented? I'm afraid it'll be confusing.) > > > > I agree that in defining the rules that define the behaviour those > > > situations are equivalent. > > > > > > However, as the examples _are the tests_ we need both as we need

Re: [rspec-users] Why RSpec?

2009-04-22 Thread John Goodsen
I'm gonna chime in with David, but I'll try to be brief. To us programmers, the distinction between Test::Unit/Shoulda and rspec seems trivial. There are situations (usually?) where we want to review the requirements with our "customers" and gain a shared understanding of what the software does.

Re: [rspec-users] Passing custom arguments to an rspec script. Is this possible?

2009-04-22 Thread stephanie
Thanks, I'll check out both options. -Stephanie On Apr 22, 4:37 pm, David Chelimsky wrote: > On Wed, Apr 22, 2009 at 4:06 PM, stephanie wrote: > > Hi, > > > I am writing a rspec script to use with selenium-client. I would like > > to pass the script some custom arguments in the command line to

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread John Goodsen
+1. I like it. -- John Goodsen RADSoft / Better Software Faster jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training http://www.radsoft.com Ruby on Rails and Java Solutions On Wed, Apr 22, 2009 at 4:22 PM, James Byrne wrote: > David Chelimsky wrot

Re: [rspec-users] Passing custom arguments to an rspec script. Is this possible?

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 4:06 PM, stephanie wrote: > Hi, > > I am writing a rspec script to use with selenium-client. I would like > to pass the script some custom arguments in the command line to change > a few test settings in the script. However, rspec gives errors when I > pass arguments to the

Re: [rspec-users] [Cucumber] Textmate support for Background

2009-04-22 Thread Ben Mabey
Tim Walker wrote: Howdy, Want to use the Background feature support and was curious if text mate support for it was coming or I could get a pointer on how to do text highlighting for "Background" was able to edit it as a Snippet but not sure how to make the syntax highlighting work. Many thanks

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Matt Wynne
On 22 Apr 2009, at 17:52, Andrew Vit wrote: On Apr 22, 2009, at 4:25 AM, Amos King wrote: I wasn't thinking about a gun. I was just wondering if there is some underlying reason that I'm missing. Is there a background structure that I'm not grasping? Is there a huge piece of functionality t

Re: [rspec-users] Passing custom arguments to an rspec script. Is this possible?

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 6:37 PM, David Chelimsky wrote: > On Wed, Apr 22, 2009 at 4:06 PM, stephanie wrote: >> Hi, >> >> I am writing a rspec script to use with selenium-client. I would like >> to pass the script some custom arguments in the command line to change >> a few test settings in the sc

Re: [rspec-users] [Cucumber] Tables

2009-04-22 Thread Ben Mabey
John Goodsen wrote: I definitely prefer the range solution over the others. I agree, it makes sense and is simple IMO. On Wed, Apr 22, 2009 at 2:14 AM, aslak hellesoy mailto:aslak.helle...@gmail.com>> wrote: This is actually one of the best I've seen so far. However it doesn't sca

Re: [rspec-users] [Cucumber] Options in tables

2009-04-22 Thread Kero van Gelder
> sorry.. the first point.. you're right this feature is to do with tables > too, however this feature is orthogonal to the other one, so I decided to > start a new thread ... I hope that was right. Sure, just wanted to make sure you'd seen the other thread. (on a aside note: what would example

Re: [rspec-users] Cucumber - step negating another expecting step

2009-04-22 Thread Joaquin Rivera Padron
ok, let's say: Then /should see "(.+)"/ do |text| # a binary step, easily negable end Then /I deny some steps/ do # really not so readable Not Then "should see \"your are not log in\"" Then "some other step that holds" # another way of saying it bad But Not Then "should receive inf

Re: [rspec-users] [Cucumber] Tables

2009-04-22 Thread Nigel Thorne
My initial approach to this (when I hit it in my work) was to get around this problem by catching the whole row from the example in the Before(scenario) filter, putting it into a well known member @data, so all steps have access to it. The problem with this is that it is then implicit which fields

Re: [rspec-users] [Cucumber] Options in tables

2009-04-22 Thread Nigel Thorne
Hi Kero.. I agree that in defining the rules that define the behaviour those situations are equivalent. However, as the examples _are the tests_ we need both as we need to test both those scenarios so the testers have confidence the feature is working in all situations. It's being a really good

Re: [rspec-users] [Cucumber] Options in tables

2009-04-22 Thread Nigel Thorne
sorry.. the first point.. you're right this feature is to do with tables too, however this feature is orthogonal to the other one, so I decided to start a new thread ... I hope that was right. Cheers Nigel 2009/4/23 Nigel Thorne > Hi Kero.. > > I agree that in defining the rules that define th

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Brian Takita
On Wed, Apr 22, 2009 at 2:05 PM, Brian Takita wrote: > On Wed, Apr 22, 2009 at 9:59 AM, David Chelimsky wrote: >> On Wed, Apr 22, 2009 at 11:35 AM, Brian Takita >> wrote: >>> On Wed, Apr 22, 2009 at 9:34 AM, Brian Takita >>> wrote: On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote: >

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Brian Takita
On Wed, Apr 22, 2009 at 9:59 AM, David Chelimsky wrote: > On Wed, Apr 22, 2009 at 11:35 AM, Brian Takita wrote: >> On Wed, Apr 22, 2009 at 9:34 AM, Brian Takita wrote: >>> On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote: Thanks, David. I do often read the rspec list because of t

[rspec-users] Passing custom arguments to an rspec script. Is this possible?

2009-04-22 Thread stephanie
Hi, I am writing a rspec script to use with selenium-client. I would like to pass the script some custom arguments in the command line to change a few test settings in the script. However, rspec gives errors when I pass arguments to the script because rspec does not expect them. Is there any way I

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread James Byrne
David Chelimsky wrote: > On Wed, Apr 22, 2009 at 2:09 PM, James Byrne > wrote: � � � (Spec::Expectations::ExpectationNotMetError) >> Rates" >> WDYT? > I like the idea, though I think it's helpful to also have the strings > in the case of String objects. But having the class and object id > w

Re: [rspec-users] testing multiple sessions in cucumber/webrat

2009-04-22 Thread Eric Kramer
Joe Van Dyk wrote: > Is it possible to have a scenario where you are testing the > interaction between two different session? Not sure if this is exactly what you need, but I found this technique to be very handy: http://erikonrails.snowedin.net/?p=159 It involves mixing in a method to Actio

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread James Byrne
David Chelimsky wrote: > I like the idea, though I think it's helpful to also have the strings > in the case of String objects. But having the class and object id > would really help tell the story we're looking for. The relationship between "#>" and the object's id is rather bizarre. irb(main)

Re: [rspec-users] [RSpec] Clarification on using shared_examples_for on a Rails Controller

2009-04-22 Thread r_j_h_box-sf
- Original Message > From: David Chelimsky > Shared examples don't support parameterization, but macros do. Try > something like this: > > module Macros > def shows_yearly_archive_for(requests={}) [...] > end > end > > describe SomeController do > extend Macros > shows_yearl

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 2:09 PM, James Byrne wrote: > David Chelimsky wrote: >> On Wed, Apr 22, 2009 at 1:45 PM, James Byrne >> wrote: >>> this worked: >>> I am not throwing out RSpec or using it any less. �I just had to get >>> � � � � � � got "Bank of Canada: Noon Foreign Exchange >>> Rates" >>

Re: [rspec-users] [Cucumber] Tables

2009-04-22 Thread r_j_h_box-sf
From: aslak hellesoy > Here is an alternative: http://gist.github.com/99376 I'm a fan of simple, which means I'm a fan of this. The only thing I can think of that would be simpler is this: * When the arity of the matcher is larger by one than the match

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread James Byrne
David Chelimsky wrote: > On Wed, Apr 22, 2009 at 1:45 PM, James Byrne > wrote: >> this worked: >> I am not throwing out RSpec or using it any less. �I just had to get >> � � � � � � got "Bank of Canada: Noon Foreign Exchange >> Rates" >> >> � � �(equal?: expected object is not the object returned

Re: [rspec-users] [Cucumber] Options in tables

2009-04-22 Thread Kero van Gelder
> In Cucumber I want to remove duplication from my examples tables. > see http://gist.github.com/99516 for an example of the type of situation I > am facing. > > I would like the second example to be equivalent to the first. > > To do this... I need cucumber to read a row in the examples and noti

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 1:45 PM, James Byrne wrote: > David Chelimsky wrote: >> >> >> The original issue you posted is with the contain matcher, which is in >> webrat, not rspec. Why it's not working, I'm not quite sure, but if >> you're going to throw out the baby with the bath water, you might >

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread James Byrne
David Chelimsky wrote: > > > The original issue you posted is with the contain matcher, which is in > webrat, not rspec. Why it's not working, I'm not quite sure, but if > you're going to throw out the baby with the bath water, you might > consider figuring out who the parents are :) > Yes, I fi

Re: [rspec-users] [RSpec] Clarification on using shared_examples_for on a Rails Controller

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 12:04 PM, Stephen H. Gerstacker wrote: > I have a Rails controller that I am using 'before_filter' on certain actions > to assign some extra variables.  I noticed the 'shared_examples_for' method > and thought this would be a good way to test that the given actions are > lo

Re: [rspec-users] Problems withe the template...

2009-04-22 Thread Alex
Problem solved! Sorry about that, turns out it wasn't an error Thanks! On 22 avr, 12:27, Alex wrote: > Hello everybody ! > > I have in a view something like this : > > <% unless (method_name?(id)) then %> >         >             <%= link_to h(t(:BTN)), new_url_path(id) %> >           > <%

Re: [rspec-users] [RSpec] Clarification on using shared_examples_for on a Rails Controller

2009-04-22 Thread Mark Wilden
On Wed, Apr 22, 2009 at 10:04 AM, Stephen H. Gerstacker wrote: > I have a Rails controller that I am using 'before_filter' on certain actions > to assign some extra variables.  I noticed the 'shared_examples_for' method > and thought this would be a good way to test that the given actions are > lo

Re: [rspec-users] Why RSpec?

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 11:35 AM, Brian Takita wrote: > On Wed, Apr 22, 2009 at 9:34 AM, Brian Takita wrote: >> On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote: >>> Thanks, David. >>> >>> I do often read the rspec list because of the discussions that you >>> site.  The community maybe enough fo

Re: [rspec-users] Problems withe the template...

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 11:27 AM, Alex wrote: > Hello everybody ! > > I have in a view something like this : > > > <% unless (method_name?(id)) then %> >         >            <%= link_to h(t(:BTN)), new_url_path(id) %> >         > <% else %> >         >                <%= link_to_function h(t(:BT

[rspec-users] [RSpec] Clarification on using shared_examples_for on a Rails Controller

2009-04-22 Thread Stephen H. Gerstacker
I have a Rails controller that I am using 'before_filter' on certain actions to assign some extra variables. I noticed the 'shared_examples_for' method and thought this would be a good way to test that the given actions are loading what they need. I wrote the following: shared_examples_for 'page

Re: [rspec-users] Depot app, Demeter's law and troubles cleanly spe cing

2009-04-22 Thread Lenny Marks
On Apr 21, 2009, at 9:45 AM, Steve Schafer wrote: On Mon, 20 Apr 2009 12:40:08 -0700, you wrote: I wrote a blog post that may be helpful. http://www.patmaddox.com/blog/demeter-is-for-encapsulation Basically, when you have structural objects as in this case, demeter isn't useful. I agree

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Andrew Vit
On Apr 22, 2009, at 4:25 AM, Amos King wrote: I wasn't thinking about a gun. I was just wondering if there is some underlying reason that I'm missing. Is there a background structure that I'm not grasping? Is there a huge piece of functionality that I'm missing? Is it faster than Test:Unit o

Re: [rspec-users] How to get stacktrace for extending Ruby in C

2009-04-22 Thread Colfer, Brian
Newb, I assume you are working in VisualStudio ... Is it possible to recompile all of Ruby in this environment? Or is it possible ot recompile your extension in MingW? Sorry to the rest of the group ... This thread should be moved to the Ruby list. Brian -Original Message- From: rspec-

Re: [rspec-users] [Cucumber] Tables

2009-04-22 Thread Kero van Gelder
> > Without adding a new feature to Cucumber, I'd probably do > > > > Scenario Outline: Religious menus > > Given the customer is a "" > > When they ask for the menu > > Then they should be presented with "" > > > > Examples: > > | Religion | Meats | > > | Christian | Pork,

Re: [rspec-users] Why RSpec?

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 11:34 AM, Brian Takita wrote: > On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote: >> Thanks, David. >> >> I do often read the rspec list because of the discussions that you >> site.  The community maybe enough for me to make the jump.  I can't >> wait to be able to use RSp

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Brian Takita
On Wed, Apr 22, 2009 at 9:34 AM, Brian Takita wrote: > On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote: >> Thanks, David. >> >> I do often read the rspec list because of the discussions that you >> site.  The community maybe enough for me to make the jump.  I can't >> wait to be able to use RSpe

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 11:08 AM, James Byrne wrote: > David Chelimsky wrote: > >> Ruby. Try this in irb: >> >> 'this' >> => "this" > > This passes: > >  assert_equal (expected, >                fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').to_s, >                "#{expected} not found") > >

[rspec-users] Problems withe the template...

2009-04-22 Thread Alex
Hello everybody ! I have in a view something like this : <% unless (method_name?(id)) then %> <%= link_to h(t(:BTN)), new_url_path(id) %> <% else %> <%= link_to_function h(t(:BTN)), 'return false;' %> <% end %> all of this works

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Brian Takita
On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote: > Thanks, David. > > I do often read the rspec list because of the discussions that you > site.  The community maybe enough for me to make the jump.  I can't > wait to be able to use RSpec and Test::Unit together as a single > cohesive framework.  

Re: [rspec-users] With RSpec 1.2.4, autospec runs twice

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 11:12 AM, Charles Grindel wrote: > I did.  BTW, I ended up digging into the issue and posted a patch for the > issue in the bug listed below.  In short, DrbCommandLine.run is returning > nil even if the running against Drb server succeeds.  This causes the logic > in Spec::

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread James Byrne
David Chelimsky wrote: > Ruby. Try this in irb: > > 'this' > => "this" This passes: assert_equal (expected, fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').to_s, "#{expected} not found") This does not: fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title')

Re: [rspec-users] With RSpec 1.2.4, autospec runs twice

2009-04-22 Thread Charles Grindel
I did. BTW, I ended up digging into the issue and posted a patch for the issue in the bug listed below. In short, DrbCommandLine.run is returning nil even if the running against Drb server succeeds. This causes the logic in Spec::Runner::OptionParser.parse_drb to return false which in turn cause

Re: [rspec-users] [Cucumber] Tables

2009-04-22 Thread John Goodsen
I definitely prefer the range solution over the others. On Wed, Apr 22, 2009 at 2:14 AM, aslak hellesoy wrote: > > > This is actually one of the best I've seen so far. However it doesn't scale > for multiple columns. (Imagine if you have 5 of them - they easily get mixed > up, or you make a spell

[rspec-users] [Cucumber] Textmate support for Background

2009-04-22 Thread Tim Walker
Howdy, Want to use the Background feature support and was curious if text mate support for it was coming or I could get a pointer on how to do text highlighting for "Background" was able to edit it as a Snippet but not sure how to make the syntax highlighting work. Many thanks, Tim _

Re: [rspec-users] Cucumber - step negating another expecting step

2009-04-22 Thread aslak hellesoy
On Wed, Apr 22, 2009 at 3:51 PM, Jeff Talbot wrote: > > On Wed, Apr 22, 2009 at 1:17 AM, aslak hellesoy > wrote: > >> >> >> 2009/4/17 Lenny Marks >> >>> I've been doing something similar. I think the benefit of having half the >>> steps(each can be negated) wins over the small impact it has on s

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 10:02 AM, James Byrne wrote: > > When I change the test to: > >  expected = 'Bank of Canada: Noon Foreign Exchange > Rates' >  fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').should =~ expected > > Then I see this instead: > >  expected: "Bank of Canada: Noon Foreign Ex

Re: [rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread James Byrne
When I change the test to: expected = 'Bank of Canada: Noon Foreign Exchange Rates' fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').should =~ expected Then I see this instead: expected: "Bank of Canada: Noon Foreign Exchange Rates", got: Bank of Canada: Noon Foreign Exchange

[rspec-users] Cucumber ".should contain(expected) does but fails anyway

2009-04-22 Thread James Byrne
This is the step definition: When /the xml document should have the Bank of Canada title/ do expected = 'Bank of Canada: Noon Foreign Exchange Rates' fx_doc = ForexCASource.new(@xchg_source) puts fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title') fx_doc.xpath('//rdf:RDF/xmlns:channel/xmln

Re: [rspec-users] Select box with Webrat

2009-04-22 Thread roovo
2009/4/22 mikej > I have a select box: > > >– Select Topic – >Pollution > > > I would like to select the pollution option from the list using > webrat. > > I've tried: > > select "Pollution", :from => "temp_aspect[topic_id]" > select "Pollution" you should select by the id att

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Amos King
Thanks, David. I do often read the rspec list because of the discussions that you site. The community maybe enough for me to make the jump. I can't wait to be able to use RSpec and Test::Unit together as a single cohesive framework. I'll keep working my side project with RSpec and see what idea

Re: [rspec-users] Why RSpec?

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 9:03 AM, Phlip wrote: > Amos King wrote: >> >> I like Shoulda.  Sometimes I like plain old Test::Unit.  Cucumber >> gives me a different thought process. >> >> I'd just like to hear some thoughts on why RSpec?  What does it buy me >> that I can't get with Shoulda?  I just c

Re: [rspec-users] Cucumber - step negating another expecting step

2009-04-22 Thread Joaquin Rivera Padron
well, that was the vague idea I had when asking at first, but I don't think every multi-should or should_not step can be in general negated, by the way, Lenny's one have come to be my preferred solution joaquin ___ rspec-users mailing list rspec-users@r

[rspec-users] Select box with Webrat

2009-04-22 Thread mikej
I have a select box: – Select Topic – Pollution I would like to select the pollution option from the list using webrat. I've tried: select "Pollution", :from => "temp_aspect[topic_id]" select "Pollution" In both cases I receive the error: The 'Pollution' option was not found

Re: [rspec-users] Why RSpec?

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 6:25 AM, Amos King wrote: > I wasn't thinking about a gun.  I was just wondering if there is some > underlying reason that I'm missing.  Is there a background structure > that I'm not grasping?  Is there a huge piece of functionality that > I'm missing?  Is it faster than T

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Phlip
Amos King wrote: I like Shoulda. Sometimes I like plain old Test::Unit. Cucumber gives me a different thought process. I'd just like to hear some thoughts on why RSpec? What does it buy me that I can't get with Shoulda? I just can't seem to think in RSpec. Where is there a good example of RS

Re: [rspec-users] Cucumber - step negating another expecting step

2009-04-22 Thread Jeff Talbot
On Wed, Apr 22, 2009 at 1:17 AM, aslak hellesoy wrote: > > > 2009/4/17 Lenny Marks > >> I've been doing something similar. I think the benefit of having half the >> steps(each can be negated) wins over the small impact it has on step >> readability. Personally I started adding stuff like this(per

Re: [rspec-users] But rspec can not be found

2009-04-22 Thread Kerstin Geiling
> On 18 Apr 2009, at 05:08, David Chelimsky wrote: >> I'm not sure that requiring environment.rb is the right solution >> because it will be loaded no matter what rake task is invoked, and >> that is clearly not the intent for all rake tasks. >> >> I hate to go back to the ugly mess that was there

Re: [rspec-users] With RSpec 1.2.4, autospec runs twice

2009-04-22 Thread David Chelimsky
On Wed, Apr 22, 2009 at 8:29 AM, Charles Grindel wrote: > Hi, > > I created a ticket for this in Lighthouse > (https://rspec.lighthouseapp.com/projects/5645/tickets/797-with-rspec-124-autospec-runs-twice). > However, I wanted to throw this out to the mailing list.  Has anyone else > run into this

[rspec-users] With RSpec 1.2.4, autospec runs twice

2009-04-22 Thread Charles Grindel
Hi, I created a ticket for this in Lighthouse ( https://rspec.lighthouseapp.com/projects/5645/tickets/797-with-rspec-124-autospec-runs-twice). However, I wanted to throw this out to the mailing list. Has anyone else run into this after the 1.2.4 upgrade? Previously on 1.2.2, autospec was running

Re: [rspec-users] Why RSpec?

2009-04-22 Thread Amos King
I wasn't thinking about a gun. I was just wondering if there is some underlying reason that I'm missing. Is there a background structure that I'm not grasping? Is there a huge piece of functionality that I'm missing? Is it faster than Test:Unit or Shoulda? Amos(adkron) On Wed, Apr 22, 2009 at

Re: [rspec-users] Tests for my gem cannot find classes in gems lib directory ..

2009-04-22 Thread Matt Wynne
On 22 Apr 2009, at 01:43, Anthony Broad-Crawford wrote: I am writing a gem and using RSpec to drive my development. However, whenever I describe a class within the gems lib I get an uninitialized constant error. I am placing my folder structure, spec.rake and first spec below. I feel I

Re: [rspec-users] Why RSpec?

2009-04-22 Thread doug livesey
I think it's that RSpec encodes some of the latest BDD into its way of thinking. It has a vocabulary that encourages that, so in a way, yes, it's all about semantics. Semantics that encourage agile thinking & practice. Also, it allows you to structure your specs (that become your regression tests)