fugafugaにrestful_authenticationをセットアップ。(4) ~ spec/helpers/users_helper_spec.rbの修正

イヤ、これが結構、悩みましたわ。

# spec/helpers/users_helper_spec.rb

(略)
     it "should use the login as link text with no :content_method specified" do
-      link_to_user(@user).should have_tag("a", 'user_name')
+      link_to_user(@user).should have_tag("a", 'who@example.com')
     end
(略)
     it "should use the login as title with no :title_method specified" do
-      link_to_user(@user).should have_tag("a[title='user_name']")
+      link_to_user(@user).should have_tag("a[title='who@example.com']")
     end
(略)
     it "should use the login as link text with no :content_method specified" do
-      link_to_current_user().should have_tag("a", 'user_name')
+      link_to_current_user().should have_tag("a", 'who@example.com')
     end
(略)
     it "should use the login as title with no :title_method specified" do
-      link_to_current_user().should have_tag("a[title='user_name']")
+      link_to_current_user().should have_tag("a[title='who@example.com']")
     end
# lib/authenticated_test_helper.rb

(略)
   def mock_user
     user = mock_model(User, :id => 1,
-      :login  => 'user_name',
+      :email  => "who@example.com",
       :name   => 'U. Surname',
       :to_xml => "User-in-XML", :to_json => "User-in-JSON", 
       :errors => [])
(略)


さて。
RSpecの勉強代わりに、restful_authenticationのspecを修正した訳ですが...


サッパリ解らんwww
どうすんだ? オレwww