Specs for deploy_keys
This commit is contained in:
parent
b85ae02856
commit
65601ade2b
4 changed files with 83 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue