added tests
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user