fixed naming
This commit is contained in:
@ -1,25 +1,25 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
describe Hint do
|
describe Hint do
|
||||||
let(:user) { Hint.create }
|
let(:hint) { Hint.create }
|
||||||
|
|
||||||
it 'validates the presence of an execution environment' do
|
it 'validates the presence of an execution environment' do
|
||||||
expect(user.errors[:execution_environment_id]).to be_present
|
expect(hint.errors[:execution_environment_id]).to be_present
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'validates the presence of a locale' do
|
it 'validates the presence of a locale' do
|
||||||
expect(user.errors[:locale]).to be_present
|
expect(hint.errors[:locale]).to be_present
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'validates the presence of a message' do
|
it 'validates the presence of a message' do
|
||||||
expect(user.errors[:message]).to be_present
|
expect(hint.errors[:message]).to be_present
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'validates the presence of a name' do
|
it 'validates the presence of a name' do
|
||||||
expect(user.errors[:name]).to be_present
|
expect(hint.errors[:name]).to be_present
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'validates the presence of a regular expression' do
|
it 'validates the presence of a regular expression' do
|
||||||
expect(user.errors[:regular_expression]).to be_present
|
expect(hint.errors[:regular_expression]).to be_present
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user