Files
codeocean/spec/models/error_spec.rb
Hauke Klement 6fef49e2ec added tests
2015-02-09 15:03:58 +01:00

20 lines
430 B
Ruby

require 'rails_helper'
describe Error do
let(:error) { Error.create }
it 'validates the presence of an execution environment' do
expect(error.errors[:execution_environment_id]).to be_present
end
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