Tests to validate that invalid keys are rejected
This commit is contained in:
parent
6fd88b8cbb
commit
27f4cf7542
3 changed files with 15 additions and 2 deletions
|
@ -73,8 +73,12 @@ describe Key do
|
|||
build(:key, user: user).should be_valid
|
||||
end
|
||||
|
||||
it "rejects the unfingerprintable key" do
|
||||
it "rejects the unfingerprintable key (contains space in middle)" do
|
||||
build(:key_with_a_space_in_the_middle).should_not be_valid
|
||||
end
|
||||
|
||||
it "rejects the unfingerprintable key (not a key)" do
|
||||
build(:invalid_key).should_not be_valid
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue