Specs for deploy_keys

This commit is contained in:
miks 2011-12-30 00:33:26 +02:00
parent b85ae02856
commit 65601ade2b
4 changed files with 83 additions and 5 deletions

View file

@ -10,11 +10,7 @@ describe DeployKey do
it { should validate_presence_of(:key) }
end
describe "Methods" do
it { should respond_to :projects }
end
it { Factory.create(:key,
it { Factory.create(:deploy_key,
:project => Factory(:project)).should be_valid }
end
# == Schema Information