diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-20 01:32:59 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-20 01:32:59 +0400 |
commit | a2d3b211892afefe9fe4ccd041391af45501f4b6 (patch) | |
tree | e8731df389a166e3760bdef974868473b35dd1c2 /spec | |
parent | 54fb0f858949ea3fab68861fe74d05a40cd45cfe (diff) |
User profile restyle. Feed(Atom) links for commits & issues
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/keys_spec.rb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/spec/requests/keys_spec.rb b/spec/requests/keys_spec.rb index 6ce22b30883..be1f42a497c 100644 --- a/spec/requests/keys_spec.rb +++ b/spec/requests/keys_spec.rb @@ -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 |