You need to update circle.yml:
machine:
node: # add node dependency
version:
7.4
environment:| require "rspec/expectations" | |
| RSpec::Matchers.define :allow_content_type do |*content_types| | |
| match do |record| | |
| matcher.matches?(record, content_types) | |
| end | |
| chain :for do |attr_name| | |
| matcher.for(attr_name) | |
| end |
| class AttachedValidator < ActiveModel::EachValidator | |
| def validate_each(record, attribute, value) | |
| record.errors.add(attribute, :attached, options) unless value.attached? | |
| end | |
| end |
| $('form .input.array').each(function() { | |
| var $wrapper = $('.array-inputs', this); | |
| var $insertArea = $(".array-input button[data-action=add]").closest(".array-input"); | |
| $(".array-input button[data-action=add]", $(this)).click(function(e) { | |
| $('.array-input:first-child', $wrapper).clone(true).insertBefore($insertArea).find('input').val('').focus(); | |
| }); | |
| $('.array-input button[data-action=remove]', $wrapper).click(function() { | |
| if ($('.array-input', $wrapper).length > 2) { | |
| $(this).parent('.array-input').remove(); | |
| } |
| # app/admin/email_previews.rb | |
| ActiveAdmin.register_page 'Email Previews' do | |
| menu parent: 'dashboard', priority: 10 | |
| content do | |
| div '1' | |
| end | |
| sidebar 'Mail Previews' do | |
| Dir['test/mailers/previews/**/*_preview.rb'].each do |preview_path| |