File: env.rb

package info (click to toggle)
ruby-carrierwave 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,692 kB
  • sloc: ruby: 9,881; sh: 26; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$:.unshift File.expand_path(File.join('..', '..', 'lib'), File.dirname(__FILE__))

require File.join(File.dirname(__FILE__), 'activerecord')

require 'rspec'
require 'carrierwave'
require "webmock/cucumber"

alias :running :lambda

def file_path( *paths )
  File.expand_path(File.join('..', *paths), File.dirname(__FILE__))
end

CarrierWave.root = file_path('public')

After do
  FileUtils.rm_rf(file_path("public"))
end