Commit c973fce6062f2054d69423cf10eecff8f34bb151
1 parent
46d21283
Exists in
master
and in
4 other branches
Use correct model for testing
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/requests/projects_deploy_keys_spec.rb
| ... | ... | @@ -45,7 +45,7 @@ describe "Projects", "DeployKeys" do |
| 45 | 45 | fill_in "deploy_key_key", :with => "publickey234=" |
| 46 | 46 | end |
| 47 | 47 | |
| 48 | - it { expect { click_button "Save" }.to change {Key.count}.by(1) } | |
| 48 | + it { expect { click_button "Save" }.to change {DeployKey.count}.by(1) } | |
| 49 | 49 | |
| 50 | 50 | it "should add new key to table" do |
| 51 | 51 | click_button "Save" | ... | ... |