Re: [rspec-users] Testing item links in Webrat (was: Cucumber)

2008-10-26 Thread Mark Thomson
Josh Knowles wrote: On 10/26/08, Mark Thomson <[EMAIL PROTECTED]> wrote: Google has just led me here: http://webrat.rubyforge.org/. Please make sure you view http://github.com/brynary/webrat/tree/master for the latest code as things change much faster they they get pushed up to RubyFo

Re: [rspec-users] Autospec running over and over, without changes?

2008-10-26 Thread David Chelimsky
On Thu, Oct 23, 2008 at 4:31 PM, Scott Burton <[EMAIL PROTECTED]> wrote: > Hi all; > > I have several Rails projects where RSpec is working correctly, and one in > which it is not. Running autospec continuously reloads all files, running my > tests over and over again, without making any changes. E

Re: [rspec-users] Testing item links in Webrat (was: Cucumber)

2008-10-26 Thread Josh Knowles
On 10/26/08, Mark Thomson <[EMAIL PROTECTED]> wrote: > Google has just led me here: http://webrat.rubyforge.org/. Please make sure you view http://github.com/brynary/webrat/tree/master for the latest code as things change much faster they they get pushed up to RubyForge. -- Josh Knowles phone:

Re: [rspec-users] Specs for ActionMailer views

2008-10-26 Thread David Chelimsky
On Sun, Oct 26, 2008 at 5:33 PM, Stephen Veit <[EMAIL PROTECTED]> wrote: > Folks, > > Has anyone written specs for ActionMailer views? What type should I use. I > can't use :view since it expects a controller. Should I make my own > Spec::Rails::Example::ViewExampleGroup class? TIA. I just use the

Re: [rspec-users] Working outside-in with Cucumber and RSpec

2008-10-26 Thread David Chelimsky
Sent from my iPhone On Oct 26, 2008, at 5:09 PM, Ashley Moran <[EMAIL PROTECTED]> wrote: On Oct 26, 2008, at 9:09 pm, Matt Wynne wrote: I don't know. I've got inheritance in my controllers, for example I have a MediaController which is subclassed by ImagesController and VideosControl

Re: [rspec-users] Testing item links in Webrat (was: Cucumber)

2008-10-26 Thread Mark Thomson
aslak hellesoy wrote: On Sun, Oct 26, 2008 at 11:30 PM, Mark Thomson <[EMAIL PROTECTED]> wrote: I have an index template that contains a tabulated list of database items, each of which has an associated "display" link that enables the item to be displayed via a "show" action. In Cucumber I kn

Re: [rspec-users] Testing item links in Webrat (was: Cucumber)

2008-10-26 Thread aslak hellesoy
On Sun, Oct 26, 2008 at 11:30 PM, Mark Thomson <[EMAIL PROTECTED]> wrote: > I have an index template that contains a tabulated list of database items, > each of which has an associated "display" link that enables the item to be > displayed via a "show" action. In Cucumber I know how to test that th

[rspec-users] Vim tree plugin?

2008-10-26 Thread Steve
Does anyone know if there's a vim plugin out there that will show a tree of your describe/it blocks at a glance. Preferably with click ability to go right to that location? Thanks, Steve ___ rspec-users mailing list rspec-users@rubyforge.org http://r

[rspec-users] Specs for ActionMailer views

2008-10-26 Thread Stephen Veit
Folks, Has anyone written specs for ActionMailer views? What type should I use. I can't use :view since it expects a controller. Should I make my own Spec::Rails::Example::ViewExampleGroup class? TIA. -- Stephen Veit ___ rspec-users mailing list rspec-

[rspec-users] Testing item links in Cucumber

2008-10-26 Thread Mark Thomson
I have an index template that contains a tabulated list of database items, each of which has an associated "display" link that enables the item to be displayed via a "show" action. In Cucumber I know how to test that the show template is rendered when one of those links is clicked using webrat'

Re: [rspec-users] Working outside-in with Cucumber and RSpec

2008-10-26 Thread Ashley Moran
On Oct 26, 2008, at 9:09 pm, Matt Wynne wrote: I don't know. I've got inheritance in my controllers, for example I have a MediaController which is subclassed by ImagesController and VideosController. The specs allowed me to factor out this base class. I think controllers are OK for doing B

[rspec-users] daylight savings time difference with rspec?

2008-10-26 Thread Harry Bishop
Hi all, I wanted to check this with you. I have an rspec example that checks the correct expiration date set on an object. The expiration is set in the model with expires_on = Time.now + next_duration[phase] where next_duration can either be in units of seconds or n.days (should be the same thi

Re: [rspec-users] Working outside-in with Cucumber and RSpec

2008-10-26 Thread Matt Wynne
On 26 Oct 2008, at 10:39, Ashley Moran wrote: On Oct 26, 2008, at 12:03 am, Ben Mabey wrote: I agree with most of this. For a purely RESTful controller I like to use a plugin, like make_resourceful, that will take care of all the boilerplate code that becomes very tedious to spec out and

Re: [rspec-users] cucumber feature description

2008-10-26 Thread aslak hellesoy
On Sun, Oct 26, 2008 at 3:56 PM, Stephen Eley <[EMAIL PROTECTED]> wrote: > On Sat, Oct 25, 2008 at 7:19 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: >> >> A more qualified person may want to answer your question, but my short >> explanation of the change of the default narrative layout is to state the

Re: [rspec-users] cucumber feature description

2008-10-26 Thread Ashley Moran
On Oct 26, 2008, at 2:59 pm, Stephen Eley wrote: I believe there's an old Internet law that states that any post bitching about grammar is guaranteed to contain at least one grammatical error, but I can't be bothered to look it up. Read too much Slashdot, you do ;) -- http://www.patchspace.c

Re: [rspec-users] cucumber feature description

2008-10-26 Thread Ashley Moran
On Oct 26, 2008, at 2:56 pm, Stephen Eley wrote: I prefer (and still use) the old way for grammatical reasons. Putting the dependent clause of a sentence ahead of the independent clause that it's dependent is awkward and distracts from the reading. To me, the benefit of the unusual order (for

Re: [rspec-users] cucumber feature description

2008-10-26 Thread Stephen Eley
On Sat, Oct 25, 2008 at 7:19 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > > A more qualified person may want to answer your question, but my short > explanation of the change of the default narrative layout is to state the > business value at the start instead of the end. However, you shouldn't feel

Re: [rspec-users] cucumber feature description

2008-10-26 Thread Stephen Eley
On Sun, Oct 26, 2008 at 10:56 AM, Stephen Eley <[EMAIL PROTECTED]> wrote: > > I prefer (and still use) the old way for grammatical reasons. Putting > the dependent clause of a sentence ahead of the independent clause > that it's dependent is awkward and distracts from the reading. Argh. That sho

Re: [rspec-users] Correct way to spec partials

2008-10-26 Thread David Chelimsky
On Thu, Oct 23, 2008 at 8:07 PM, Oleksandr Rudyk <[EMAIL PROTECTED]> wrote: > Hi everybody, > 1) Does anybody have full working example of how to test partial templates? > 2) What the correct place to test partials: controller or view spec? If > controller correct place, > should I use integrate_vi

Re: [rspec-users] cucumber feature description

2008-10-26 Thread David Chelimsky
On Sun, Oct 26, 2008 at 5:11 AM, Ashley Moran <[EMAIL PROTECTED]> wrote: > > On Oct 26, 2008, at 12:19 am, Ben Mabey wrote: > >> A more qualified person may want to answer your question, but my short >> explanation of the change of the default narrative layout is to state the >> business value at t

Re: [rspec-users] Working outside-in with Cucumber and RSpec

2008-10-26 Thread Ashley Moran
On Oct 26, 2008, at 12:03 am, Ben Mabey wrote: I agree with most of this. For a purely RESTful controller I like to use a plugin, like make_resourceful, that will take care of all the boilerplate code that becomes very tedious to spec out and write. Since the plugins are tested I can jus

Re: [rspec-users] cucumber feature description

2008-10-26 Thread Ashley Moran
On Oct 26, 2008, at 12:19 am, Ben Mabey wrote: A more qualified person may want to answer your question, but my short explanation of the change of the default narrative layout is to state the business value at the start instead of the end. I do this, and updated my TextMate Cucumber fea t