allow user to reset his private token
This commit is contained in:
parent
32ca0b8cae
commit
ed5e19a518
5 changed files with 33 additions and 1 deletions
|
@ -29,6 +29,19 @@ describe "Profile" do
|
|||
it { @user.twitter.should == 'testtwitter' }
|
||||
end
|
||||
|
||||
describe "Reset private token" do
|
||||
before do
|
||||
visit profile_password_path
|
||||
end
|
||||
|
||||
it "should reset private token" do
|
||||
user_first_token = @user.private_token
|
||||
click_button "Reset"
|
||||
@user.reload
|
||||
@user.private_token.should_not == user_first_token
|
||||
end
|
||||
end
|
||||
|
||||
describe "Password update" do
|
||||
before do
|
||||
visit profile_password_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue