Sha256: 11a449e3e74227593833a73431c948399bcc2feeb2f79d5a2a1c52d698d3e123
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_unbundled_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_main.rb' do let(:template_path) { 'active_admin_main.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-rails-1.7.2 | spec/bug_report_templates_spec.rb |
activeadmin-rails-1.7.1 | spec/bug_report_templates_spec.rb |
activeadmin-rails-1.7.0 | spec/bug_report_templates_spec.rb |