Browse files

added factory_girl and faker gems to the extension Gemfile template. …

…this allows developers to use spree_core's factories from within an extension's specs
  • Loading branch information...
1 parent 85b0adc commit 3f57aeea18394870e10c45588ea200ff5dc5ff01 @joshnuss joshnuss committed with BDQ Oct 12, 2011
Showing with 8 additions and 0 deletions.
  1. +5 −0 lib/spree/templates/extension/Gemfile
  2. +3 −0 lib/spree/templates/extension/spec_helper.rb.tt
View
5 lib/spree/templates/extension/Gemfile
@@ -13,6 +13,11 @@ group :cucumber do
gem 'capybara', '1.0.1'
end
+group :test, :cucumber do
+ gem 'faker'
+ gem 'factory_girl'
+end
+
if RUBY_VERSION < "1.9"
gem "ruby-debug"
else
View
3 lib/spree/templates/extension/spec_helper.rb.tt
@@ -13,6 +13,9 @@ require 'rspec/rails'
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
+# Requires factories defined in spree_core
+require 'spree_core/testing_support/factories'
+
RSpec.configure do |config|
# == Mock Framework
#

0 comments on commit 3f57aee

Please sign in to comment.