Skip to content

Commit

Permalink
fixes #12730 - removing the fakeFS gem
Browse files Browse the repository at this point in the history
  • Loading branch information
unorthodoxgeek committed Dec 7, 2015
1 parent 0dbd3e7 commit dd58785
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion bundler.d/test.rb
Expand Up @@ -15,5 +15,4 @@
gem "poltergeist"
gem 'test-unit' if RUBY_VERSION >= '2.2'
gem 'test_after_commit', '~> 0.4'
gem 'fakefs', :require => 'fakefs/safe'
end
12 changes: 3 additions & 9 deletions test/unit/auth_sources/auth_source_ldap_test.rb
Expand Up @@ -283,15 +283,6 @@ def setup
end

context 'save external avatar' do
def setup
require 'fakefs/safe'
FakeFS.activate!
end

def teardown
FakeFS.deactivate!
end

test 'store_avatar can save 8bit ascii files' do
auth = AuthSourceLdap.new
FileUtils.mkdir_p(File.join(Rails.root, 'tmp'))
Expand All @@ -304,6 +295,9 @@ def teardown
auth.send(:store_avatar, file_string)
end
assert(File.exist?("#{Rails.public_path}/assets/avatars/#{avatar_hash}.jpg"))

File.delete("#{Rails.root}/tmp/out.txt")
File.delete("#{Rails.public_path}/assets/avatars/#{avatar_hash}.jpg")
end
end

Expand Down

0 comments on commit dd58785

Please sign in to comment.