Re: [rspec-users] undefined method `assert_select'

2009-05-24 Thread David Chelimsky
On Sun, May 24, 2009 at 7:38 PM, Sarah Allen wrote: > David Chelimsky wrote: >> FYI - if you put this file in spec/helpers/swf_object_helper_spec.rb, >> then :type => :helper is implied, so you don't have to make it >> explicit. > > just curious... are there any other magic directories I should kn

Re: [rspec-users] undefined method `assert_select'

2009-05-24 Thread Sarah Allen
David Chelimsky wrote: > FYI - if you put this file in spec/helpers/swf_object_helper_spec.rb, > then :type => :helper is implied, so you don't have to make it > explicit. just curious... are there any other magic directories I should know about? Thanks, Sarah -- Posted via http://www.ruby-for

Re: [rspec-users] undefined method `assert_select'

2009-05-24 Thread Sarah Allen
David Chelimsky wrote: > FYI - if you put this file in spec/helpers/swf_object_helper_spec.rb, > then :type => :helper is implied, so you don't have to make it > explicit. Nice. By the way, I've been enjoying The RSpec Book, but it looks like I had to figure out view helpers before that chapter

Re: [rspec-users] undefined method `assert_select'

2009-05-24 Thread David Chelimsky
On Sun, May 24, 2009 at 3:20 PM, Sarah Allen wrote: > Sarah Allen wrote: >> Sarah Allen wrote: >>> line 17 is: >>>       html.should have_tag('script', /swfobject.embedSWF/) >> >> I order to use have_tag, it appears I have to include: >> >> # just enough infrastructure to get 'assert_select' to wo

Re: [rspec-users] undefined method `assert_select'

2009-05-24 Thread Sarah Allen
Sarah Allen wrote: > Sarah Allen wrote: >> line 17 is: >> html.should have_tag('script', /swfobject.embedSWF/) > > I order to use have_tag, it appears I have to include: > > # just enough infrastructure to get 'assert_select' to work > require 'action_controller' > require 'action_controlle

Re: [rspec-users] undefined method `assert_select'

2009-05-23 Thread Sarah Allen
David Chelimsky wrote: > What version of rspec are you using? 1.2.6 -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] undefined method `assert_select'

2009-05-23 Thread David Chelimsky
On Sat, May 23, 2009 at 3:00 PM, Sarah Allen wrote: > Sarah Allen wrote: >> Sarah Allen wrote: >>> line 17 is: >>>       html.should have_tag('script', /swfobject.embedSWF/) >> >> I order to use have_tag, it appears I have to include: >> >> # just enough infrastructure to get 'assert_select' to wo

Re: [rspec-users] undefined method `assert_select'

2009-05-23 Thread Sarah Allen
Sarah Allen wrote: > Sarah Allen wrote: >> line 17 is: >> html.should have_tag('script', /swfobject.embedSWF/) > > I order to use have_tag, it appears I have to include: > > # just enough infrastructure to get 'assert_select' to work > require 'action_controller' > require 'action_controlle

Re: [rspec-users] undefined method `assert_select'

2009-05-23 Thread Sarah Allen
Sarah Allen wrote: > line 17 is: > html.should have_tag('script', /swfobject.embedSWF/) I order to use have_tag, it appears I have to include: # just enough infrastructure to get 'assert_select' to work require 'action_controller' require 'action_controller/assertions/selector_assertions' i