Add structured errors to schema

This commit is contained in:
Maximilian Grundke
2017-07-03 10:09:48 +02:00
parent 6c353d611d
commit d2a089d057
17 changed files with 144 additions and 1 deletions

View File

@ -0,0 +1,7 @@
FactoryGirl.define do
factory :error_template_attribute do
error_template nil
key "MyString"
regex "MyString"
end
end

View File

@ -0,0 +1,7 @@
FactoryGirl.define do
factory :error_template do
execution_environment nil
name "MyString"
signature "MyString"
end
end

View File

@ -0,0 +1,7 @@
FactoryGirl.define do
factory :structured_error_attribute do
structured_error nil
error_template_attribute nil
value "MyString"
end
end

View File

@ -0,0 +1,6 @@
FactoryGirl.define do
factory :structured_error do
error_template nil
file nil
end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class ErrorTemplateAttributeTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class ErrorTemplateTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class StructuredErrorAttributeTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class StructuredErrorTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end