[rspec-users] named context or calling include_context with block?

2011-08-06 Thread Christopher J. Bottaro
Hello, I'm playing around with Rspec again after going from test/unit to rspec then back to test/unit... :) Right off the bat, I find myself wanting to do something like this: https://gist.github.com/1128091 Basically, I want to name a context, then call it later by name, passing a block to it.

Re: [rspec-users] named context or calling include_context with block?

2011-08-06 Thread Christopher J. Bottaro
Aug 5, 2011, at 1:55 PM, Christopher J. Bottaro wrote: > > > Hello, > > > I'm playing around with Rspec again after going from test/unit to > > rspec then back to test/unit... :)  Right off the bat, I find myself > > wanting to do something like this:  https://gist

Re: [rspec-users] named context or calling include_context with block?

2011-08-07 Thread Christopher J. Bottaro
On Aug 6, 11:57 am, David Chelimsky wrote: > On Aug 6, 2011, at 10:05 AM, Christopher J. Bottaro wrote: > > > > > > > > > > > On Aug 6, 8:56 am, David Chelimsky wrote: > >> On Aug 5, 2011, at 1:55 PM, Christopher J. Bottaro wrote: > > >>&

[rspec-users] Rails view spec expectations/matchers

2011-10-11 Thread Christopher J. Bottaro
>From looking at the RSpec Rails documentation (https://www.relishapp.com/rspec/rspec-rails/docs/view-specs/view-spec) it seems like rendered is just a string and you can't really do any assert_select type stuff out of the box. After Googling around, it seems that the RSpec authors decided that