Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

Commit

Permalink
#311 Fix the bug related to running activeadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
pentiumx committed Sep 23, 2014
1 parent 56bdc07 commit 2e5352d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion spec/factories/target_images.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include ActionDispatch::TestProcess
# Need to attach 'Rails.env.test?' or this crushes activeadmin pages.
# https://github.com/activeadmin/activeadmin/issues/512
include ActionDispatch::TestProcess if Rails.env.test?

FactoryGirl.define do
factory :target_image, class: TargetImage do
Expand Down
4 changes: 3 additions & 1 deletion spec/services/taget_images_service_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'spec_helper'
require "#{Rails.root}/app/services/target_images_service"
include ActionDispatch::TestProcess
# Need to attach 'Rails.env.test?' or this crushes activeadmin pages.
# https://github.com/activeadmin/activeadmin/issues/512
include ActionDispatch::TestProcess if Rails.env.test?

describe TargetImagesService do
let(:valid_attributes) { FactoryGirl.attributes_for(:target_image) }
Expand Down

0 comments on commit 2e5352d

Please sign in to comment.