diff --git a/spec/requests/projects_deploy_keys_spec.rb b/spec/requests/projects_deploy_keys_spec.rb index 3c9d170fd5c463dfc488bf36f1ffc608f57be42c..29a1aefde56276d8e6bfaac92f7622f2744a12a7 100644 --- a/spec/requests/projects_deploy_keys_spec.rb +++ b/spec/requests/projects_deploy_keys_spec.rb @@ -45,7 +45,7 @@ describe "Projects", "DeployKeys" do fill_in "deploy_key_key", :with => "publickey234=" end - it { expect { click_button "Save" }.to change {Key.count}.by(1) } + it { expect { click_button "Save" }.to change {DeployKey.count}.by(1) } it "should add new key to table" do click_button "Save"