search for: gallery_1_thumbnails

Displaying 1 result from an estimated 1 matches for "gallery_1_thumbnails".

2007 Sep 08
0
Writing specs for scriptaculous helper
...thumbnails which I''m going to make sortable with sortable_element. I''m trying to figure out a good way to write a spec for this type of call. so far the closest I have gotten is to write something like response.should have_text Regexp.new(''Sortable.create\ ("gallery_1_thumbnails"'') Which works, but seems a bit ugly (and could possibly break if Scriptaculous changed. It just seems a little too "hard coded". Is there a better way? Thanks, Leslie