# Sets up the Rails environment for Cucumber ENV["RAILS_ENV"] = "test" # Extension root extension_env = File.expand_path(File.dirname(__FILE__) + '/../../../../../config/environment') require extension_env+'.rb' Dir.glob(File.join(RADIANT_ROOT, "features", "**", "*.rb")).each {|step| require step unless step =~ /datasets_loader\.rb$/} Cucumber::Rails::World.class_eval do dataset :users_and_pages, :stylesheets, :javascripts end