Sha256: fb5c881f60efdadb2d5eb89aef0d4f2779782bbbf6258c791e9c594c4df14371

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

require 'spec_helper'

RSpec.describe 'bug_report_templates' do
  subject do
    Bundler.with_clean_env do
      Dir.chdir(chdir_path) do
        system({'ACTIVE_ADMIN_PATH' => active_admin_root},
               Gem.ruby,
               template_path,
               out: File::NULL)
      end
    end
  end

  let(:active_admin_root) { File.expand_path('../..', __FILE__) }
  let(:chdir_path) { File.join(active_admin_root, 'lib', 'bug_report_templates') }

  context 'when runs rails_5_master.rb' do
    let(:template_path) { 'rails_5_master.rb' }

    it 'passes' do
      expect(subject).to be_truthy
    end
  end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin-1.0.0 spec/bug_report_templates_spec.rb
activeadmin-1.0.0.pre5 spec/bug_report_templates_spec.rb