Re: [rspec-users] Could not find shared example group named "an admin is logged in"

2010-10-08 Thread Tim Gremore
Hi David - it's starting to sink in for me. Your explanation was clear but I have to ask if there is a better way when I hear that I'm using something opposite its intended purpose :) I've been able to send a block to my shared example group successfully - working great so far! Thanks again On

Re: [rspec-users] Could not find shared example group named "an admin is logged in"

2010-10-08 Thread David Chelimsky
On Oct 8, 2010, at 8:20 AM, Tim Gremore wrote: > On Thu, Oct 7, 2010 at 8:25 PM, David Chelimsky wrote: > On Oct 7, 2010, at 4:36 PM, Tim Gremore wrote: > >> I'm stuck! Not sure what I'm missing but I'm struggling to get a shared >> example group working with my controller specs. Here is a pi

Re: [rspec-users] Could not find shared example group named "an admin is logged in"

2010-10-08 Thread Tim Gremore
Thanks much Justin and David - very helpful. David, you explained that I could accomplish my goal by sending a block to it_should_behave_like, even though that is not its intended purpose. Is there a cleaner way to accomplish my goal (spec'ing controller authentication and authorization)? On Thu

Re: [rspec-users] Could not find shared example group named "an admin is logged in"

2010-10-07 Thread David Chelimsky
On Oct 7, 2010, at 4:36 PM, Tim Gremore wrote: > I'm stuck! Not sure what I'm missing but I'm struggling to get a shared > example group working with my controller specs. Here is a piece of the > backtrace: > > /Users/20217633/.rvm/gems/ruby-1.9.2...@rails3/gems/rspec-core-2.0.0.rc/lib/rspec/c

Re: [rspec-users] Could not find shared example group named "an admin is logged in"

2010-10-07 Thread Justin Ko
On Oct 7, 5:36 pm, Tim Gremore wrote: > I'm stuck! Not sure what I'm missing but I'm struggling to get a shared > example group working with my controller specs.  Here is a piece of the > backtrace: > > /Users/20217633/.rvm/gems/ruby-1.9.2...@rails3/gems/rspec-core-2.0.0.rc/lib > /rspec/core/ex

[rspec-users] Could not find shared example group named "an admin is logged in"

2010-10-07 Thread Tim Gremore
I'm stuck! Not sure what I'm missing but I'm struggling to get a shared example group working with my controller specs. Here is a piece of the backtrace: /Users/20217633/.rvm/gems/ruby-1.9.2...@rails3/gems/rspec-core-2.0.0.rc/lib/rspec/core/example_group.rb:68:in `it_should_behave_like': Could no