Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add a Gemfile and make env.rb play nice with redmine-cucumber

  • Loading branch information...
commit 9b91927a033c736a868df3b441832da675afa192 1 parent ff30d62
@timfel timfel authored
Showing with 17 additions and 10 deletions.
  1. +3 −0  Gemfile
  2. +14 −10 features/support/env.rb
View
3  Gemfile
@@ -0,0 +1,3 @@
+group :development, :test do
+ gem "machinist"
+end
View
24 features/support/env.rb
@@ -1,22 +1,26 @@
# Sets up the Rails environment for Cucumber
-ENV["RAILS_ENV"] = "test"
+# ENV["RAILS_ENV"] = "test"
# Allows loading of an environment config based on the environment
-redmine_root = ENV["REDMINE_ROOT"] || File.dirname(__FILE__) + "/../../../../.."
-require File.expand_path(redmine_root + "/config/environment")
-require 'cucumber/rails/world'
-Cucumber::Rails.use_transactional_fixtures
+# redmine_root = ENV["REDMINE_ROOT"] || File.dirname(__FILE__) + "/../../../../.."
+# require File.expand_path(redmine_root + "/config/environment")
+# require 'cucumber/rails/world'
+# Cucumber::Rails.use_transactional_fixtures
-require 'webrat/rails'
+# require 'webrat/rails'
# Comment out the next two lines if you're not using RSpec's matchers (should / should_not) in your steps.
-require 'cucumber/rails/rspec'
-require 'webrat/rspec-rails'
+# require 'cucumber/rails/rspec'
+# require 'webrat/rspec-rails'
-require 'ruby-debug'
+# require 'ruby-debug'
# Machinist and it's data
-require 'faker'
+begin
+ require 'faker'
+rescue LoadError
+ require 'ffaker'
+end
require 'machinist'
require File.expand_path(File.dirname(__FILE__) + '/../../blueprints/blueprint')
Please sign in to comment.
Something went wrong with that request. Please try again.