Add structured errors to schema
This commit is contained in:
7
test/factories/error_template_attributes.rb
Normal file
7
test/factories/error_template_attributes.rb
Normal file
@ -0,0 +1,7 @@
|
||||
FactoryGirl.define do
|
||||
factory :error_template_attribute do
|
||||
error_template nil
|
||||
key "MyString"
|
||||
regex "MyString"
|
||||
end
|
||||
end
|
7
test/factories/error_templates.rb
Normal file
7
test/factories/error_templates.rb
Normal file
@ -0,0 +1,7 @@
|
||||
FactoryGirl.define do
|
||||
factory :error_template do
|
||||
execution_environment nil
|
||||
name "MyString"
|
||||
signature "MyString"
|
||||
end
|
||||
end
|
7
test/factories/structured_error_attributes.rb
Normal file
7
test/factories/structured_error_attributes.rb
Normal file
@ -0,0 +1,7 @@
|
||||
FactoryGirl.define do
|
||||
factory :structured_error_attribute do
|
||||
structured_error nil
|
||||
error_template_attribute nil
|
||||
value "MyString"
|
||||
end
|
||||
end
|
6
test/factories/structured_errors.rb
Normal file
6
test/factories/structured_errors.rb
Normal file
@ -0,0 +1,6 @@
|
||||
FactoryGirl.define do
|
||||
factory :structured_error do
|
||||
error_template nil
|
||||
file nil
|
||||
end
|
||||
end
|
7
test/models/error_template_attribute_test.rb
Normal file
7
test/models/error_template_attribute_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ErrorTemplateAttributeTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/models/error_template_test.rb
Normal file
7
test/models/error_template_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class ErrorTemplateTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/models/structured_error_attribute_test.rb
Normal file
7
test/models/structured_error_attribute_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class StructuredErrorAttributeTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/models/structured_error_test.rb
Normal file
7
test/models/structured_error_test.rb
Normal file
@ -0,0 +1,7 @@
|
||||
require 'test_helper'
|
||||
|
||||
class StructuredErrorTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Reference in New Issue
Block a user