Changeset 5278
- Timestamp:
- 10/09/06 22:54:53 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/assertions/selector_assertions.rb
r5240 r5278 64 64 arg = args.shift 65 65 elsif arg == nil 66 raise ArgumentError, "First ar ugment is either selector or element to select, but nil found. Perhaps you called assert_select with an element that does not exist?"66 raise ArgumentError, "First argument is either selector or element to select, but nil found. Perhaps you called assert_select with an element that does not exist?" 67 67 elsif @selected 68 68 matches = [] … … 189 189 # This usually happens when passing a node/element that 190 190 # happens to be nil. 191 raise ArgumentError, "First ar ugment is either selector or element to select, but nil found. Perhaps you called assert_select with an element that does not exist?"191 raise ArgumentError, "First argument is either selector or element to select, but nil found. Perhaps you called assert_select with an element that does not exist?" 192 192 elsif @selected 193 193 root = HTML::Node.new(nil)