FactoryGirl.define do factory :custom_signature, class: 'ESP::CustomSignature' do skip_create sequence(:id) { |n| n } type "custom_signatures" created_at { Time.current } active true description "Test description" identifier "AWS::Test::001" name "Test" resolution "Test resolution" risk_level "Medium" signature "Some javascript" language "javascript" updated_at nil relationships do { organization: { data: { type: "organizations", id: "1003" }, links: { related: "http://test.host/api/v2/organizations/1003.json" } } } end end end