transferred Code Ocean from original repository to GitHub

This commit is contained in:
Hauke Klement
2015-01-22 09:51:49 +01:00
commit 4cbf9970b1
683 changed files with 11979 additions and 0 deletions

25
spec/models/hint_spec.rb Normal file
View File

@@ -0,0 +1,25 @@
require 'rails_helper'
describe Hint do
let(:user) { Hint.create }
it 'validates the presence of an execution environment' do
expect(user.errors[:execution_environment_id]).to be_present
end
it 'validates the presence of a locale' do
expect(user.errors[:locale]).to be_present
end
it 'validates the presence of a message' do
expect(user.errors[:message]).to be_present
end
it 'validates the presence of a name' do
expect(user.errors[:name]).to be_present
end
it 'validates the presence of a regular expression' do
expect(user.errors[:regular_expression]).to be_present
end
end