tests for: Profile -> History

This commit is contained in:
randx 2012-09-27 23:23:11 +03:00
parent 68f4b59738
commit 9cabe04368
5 changed files with 24 additions and 0 deletions

View file

@ -41,4 +41,12 @@ class Profile < Spinach::FeatureSteps
find("#token").value.should_not == @old_token
find("#token").value.should == @user.reload.private_token
end
Given 'I have activity' do
Factory :closed_issue_event, author: current_user
end
Then 'I should see my activity' do
page.should have_content "#{current_user.name} closed issue"
end
end