Use correct model for testing

This commit is contained in:
miks 2011-12-30 15:19:23 +02:00
parent 46d212832f
commit c973fce606

View file

@ -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"