added tests

This commit is contained in:
Hauke Klement
2015-02-09 15:03:58 +01:00
parent 9aa1db0e76
commit 6fef49e2ec
2 changed files with 12 additions and 0 deletions

View File

@ -10,4 +10,10 @@ describe Error do
it 'validates the presence of a message' do
expect(error.errors[:message]).to be_present
end
describe '.nested_resource?' do
it 'is true' do
expect(Error.nested_resource?).to be true
end
end
end

View File

@ -22,4 +22,10 @@ describe Hint do
it 'validates the presence of a regular expression' do
expect(hint.errors[:regular_expression]).to be_present
end
describe '.nested_resource?' do
it 'is true' do
expect(Hint.nested_resource?).to be true
end
end
end