26 lines
625 B
Ruby
26 lines
625 B
Ruby
require 'rails_helper'
|
|
|
|
describe Hint do
|
|
let(:hint) { Hint.create }
|
|
|
|
it 'validates the presence of an execution environment' do
|
|
expect(hint.errors[:execution_environment_id]).to be_present
|
|
end
|
|
|
|
it 'validates the presence of a locale' do
|
|
expect(hint.errors[:locale]).to be_present
|
|
end
|
|
|
|
it 'validates the presence of a message' do
|
|
expect(hint.errors[:message]).to be_present
|
|
end
|
|
|
|
it 'validates the presence of a name' do
|
|
expect(hint.errors[:name]).to be_present
|
|
end
|
|
|
|
it 'validates the presence of a regular expression' do
|
|
expect(hint.errors[:regular_expression]).to be_present
|
|
end
|
|
end
|