User profile restyle. Feed(Atom) links for commits & issues
This commit is contained in:
parent
54fb0f8589
commit
a2d3b21189
16 changed files with 147 additions and 92 deletions
|
@ -16,9 +16,11 @@ describe "Issues" do
|
|||
it { should have_content(@key.title) }
|
||||
|
||||
describe "Destroy" do
|
||||
before { visit key_path(@key) }
|
||||
|
||||
it "should remove entry" do
|
||||
expect {
|
||||
click_link "destroy_key_#{@key.id}"
|
||||
click_link "Remove"
|
||||
}.to change { @user.keys.count }.by(-1)
|
||||
end
|
||||
end
|
||||
|
@ -47,8 +49,17 @@ describe "Issues" do
|
|||
|
||||
page.should_not have_content("Add new public key")
|
||||
page.should have_content "laptop"
|
||||
page.should have_content "publickey234="
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "Show page" do
|
||||
before do
|
||||
@key = Factory :key, :user => @user
|
||||
visit key_path(@key)
|
||||
end
|
||||
|
||||
it { page.should have_content @key.title }
|
||||
it { page.should have_content @key.key[0..10] }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue