Changeset 5947 for platform/tdiary/spec
- Timestamp:
- 01/31/08 14:47:52 (10 months ago)
- Files:
-
- 1 modified
-
platform/tdiary/spec/openid_spec.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/spec/openid_spec.rb
r5932 r5947 207 207 :rel => 'openid2.local_id', 208 208 :href => 'https://me.yahoo.co.jp/a/tdtds')} 209 210 it { @header_snippet.should_not include_link_tag_with( 211 :rel => "openid.server")} 212 213 it { @header_snippet.should_not include_link_tag_with( 214 :rel => "openid.delegate")} 215 209 216 end 210 217 … … 222 229 :rel => 'openid2.local_id', 223 230 :href => 'https://me.yahoo.com/a/tdtds')} 231 232 it { @header_snippet.should_not include_link_tag_with( 233 :rel => "openid.server")} 234 235 it { @header_snippet.should_not include_link_tag_with( 236 :rel => "openid.delegate")} 224 237 end 225 238 226 239 def include_link_tag_with(options) 227 240 msg = "include #{options[:rel]} link tag" 228 expected = %|<link rel="#{options[:rel]}" href="#{options[:href]}">| 241 expected = %|<link rel="#{options[:rel]}"| if options[:rel] 242 expected <<= %| href="#{options[:href]}">| if options[:href] 229 243 Spec::Matchers::SimpleMatcher.new(msg) do |actual| 230 actual.include? (expected)244 actual.include? expected 231 245 end 232 246 end … … 238 252 EOS 239 253 Spec::Matchers::SimpleMatcher.new(msg) do |actual| 240 actual.include?( expected)254 actual.include?( expected ) 241 255 end 242 256 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)