| | 152 | describe "claimID.com" do |
| | 153 | before do |
| | 154 | @plugin = setup_open_id_plugin('claimID.com', 'tdtds') |
| | 155 | @header_snippet = @plugin.header_proc |
| | 156 | end |
| | 157 | |
| | 158 | it { @header_snippet.should include_xrds_meta_tag_with( |
| | 159 | :content => "http://claimid.com/tdtds/xrds")} |
| | 160 | |
| | 161 | it { @header_snippet.should include_link_tag_with( |
| | 162 | :rel => "openid.server", |
| | 163 | :href => "http://openid.claimid.com/server")} |
| | 164 | |
| | 165 | it { @header_snippet.should include_link_tag_with( |
| | 166 | :rel => "openid.delegate", |
| | 167 | :href => "http://openid.claimid.com/tdtds")} |
| | 168 | end |
| | 169 | |
| | 170 | describe "Personal Identity Provider (PIP)" do |
| | 171 | before do |
| | 172 | @plugin = setup_open_id_plugin('Personal Identity Provider (PIP)', 'tdtds') |
| | 173 | @header_snippet = @plugin.header_proc |
| | 174 | end |
| | 175 | |
| | 176 | it { @header_snippet.should include_xrds_meta_tag_with( |
| | 177 | :content => "http://pip.verisignlabs.com/user/tdtds/yadisxrds")} |
| | 178 | |
| | 179 | it { @header_snippet.should include_link_tag_with( |
| | 180 | :rel => "openid.server", |
| | 181 | :href => "http://pip.verisignlabs.com/server")} |
| | 182 | |
| | 183 | it { @header_snippet.should include_link_tag_with( |
| | 184 | :rel => "openid.delegate", |
| | 185 | :href => "http://tdtds.pip.verisignlabs.com/")} |
| | 186 | |
| | 187 | it { @header_snippet.should include_link_tag_with( |
| | 188 | :rel => "openid2.provider", |
| | 189 | :href => "http://pip.verisignlabs.com/server")} |
| | 190 | |
| | 191 | it { @header_snippet.should include_link_tag_with( |
| | 192 | :rel => "openid2.local_id", |
| | 193 | :href => "http://tdtds.pip.verisignlabs.com/")} |
| | 194 | end |
| | 195 | |
| | 211 | describe "Yahoo!" do |
| | 212 | before do |
| | 213 | plugin = setup_open_id_plugin('Yahoo!', 'tdtds') |
| | 214 | @header_snippet = plugin.header_proc |
| | 215 | end |
| | 216 | |
| | 217 | it { @header_snippet.should include_link_tag_with( |
| | 218 | :rel => 'openid2.provider', |
| | 219 | :href => 'https://open.login.yahooapis.com/openid/op/auth')} |
| | 220 | |
| | 221 | it { @header_snippet.should include_link_tag_with( |
| | 222 | :rel => 'openid2.local_id', |
| | 223 | :href => 'https://me.yahoo.com/a/tdtds')} |
| | 224 | end |