Changeset 993
- Timestamp:
- 11/13/07 18:09:48 (1 year ago)
- Files:
-
- trunk/lib/merb/test/rspec.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/test/rspec.rb
r804 r993 31 31 def initialize(name, attrs) 32 32 @name, @attrs = name, attrs 33 @content = @attrs.delete(:content) 33 34 end 34 35 … … 41 42 unless target.include?("#{attr}=\"#{val}\"") 42 43 @errors << "Expected #{attr}=\"#{val}\", but was #{target}" 44 end 45 end 46 if @content 47 unless target.include?(">#{@content}<") 48 @errors << "Expected #{target} to include #{@content}" 43 49 end 44 50 end
