1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/features/support/env.rb
Steve Klabnik e82d2dc277 Adding cucumber stuff for integration testing.
I've embedded a little Rails app so that we can write cuke tests and
make sure that stuff doesn't break. Woo!

This was generated by making a rails engine, then copying just the
app over.

Thanks @nashby for fixing my stupid bug with sqlite3; it had to be
added as a development dependency. ❤️
2012-10-16 06:22:21 -07:00

8 lines
276 B
Ruby

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../../../spec/dummy/config/environment.rb", __FILE__)
ENV["RAILS_ROOT"] = File.expand_path("../../../spec/dummy", __FILE__)
require 'cucumber/rails'
Rails.backtrace_cleaner.remove_silencers!