Sha256: e7bbc6d75ceda99544724534ed4debda754fc18973e98ec67c91cf6e72a344d0
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' require 'open3' RSpec.describe 'bug_report_templates' do subject do Bundler.with_clean_env do Dir.chdir(chdir_path) do Open3.capture2e( {'ACTIVE_ADMIN_PATH' => active_admin_root}, Gem.ruby, template_path )[1] 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 active_admin_master.rb' do let(:template_path) { 'active_admin_master.rb' } it 'passes' do expect(subject).to be_truthy end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-rb-1.5.2 | spec/bug_report_templates_spec.rb |
activeadmin-rb-1.5.1 | spec/bug_report_templates_spec.rb |
activeadmin-rb-1.5.0 | spec/bug_report_templates_spec.rb |