Permalink
Browse files

revised topics helper rspec for commit:4c2261c

  • Loading branch information...
1 parent 069289f commit f3daf531603f1e231b3a3e5eeb30550225571978 @HungYuHei HungYuHei committed Apr 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/helpers/topics_helper_spec.rb
@@ -136,13 +136,13 @@
it "should result when logined user did not favorite topic" do
user.stub(:favorite_topic_ids).and_return([])
helper.stub(:current_user).and_return(user)
- helper.topic_favorite_tag(topic).should == %(<a href="#" class="icon small_bookmark" data-id="#{topic.id}" onclick="return Topics.favorite(this);" rel="twipsy" title="收藏"></a>)
+ helper.topic_favorite_tag(topic).should == %(<a href="#" class="bookmark" data-id="#{topic.id}" onclick="return Topics.favorite(this);" rel="twipsy" title="收藏">收藏</a>)
end
it "should result when logined user favorited topic" do
user.stub(:favorite_topic_ids).and_return([topic.id])
helper.stub(:current_user).and_return(user)
- helper.topic_favorite_tag(topic).should == %(<a href="#" class="icon small_bookmarked" data-id="#{topic.id}" onclick="return Topics.favorite(this);" rel="twipsy" title="取消收藏"></a>)
+ helper.topic_favorite_tag(topic).should == %(<a href="#" class="favorited" data-id="#{topic.id}" onclick="return Topics.favorite(this);" rel="twipsy" title="取消收藏">取消收藏</a>)
end
it "should result blank when unlogin user" do

0 comments on commit f3daf53

Please sign in to comment.