From 3c25ccd0e353b0b55cd7ad2935eca3d6bbd390bf Mon Sep 17 00:00:00 2001 From: Marnen Laibow-Koser Date: Fri, 8 May 2009 15:06:39 -0400 Subject: [PATCH] A bit more Machinist setup. [#22] --- spec/blueprints.rb | 2 ++ spec/spec_helper.rb | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 spec/blueprints.rb diff --git a/spec/blueprints.rb b/spec/blueprints.rb new file mode 100644 index 00000000..74e46cc2 --- /dev/null +++ b/spec/blueprints.rb @@ -0,0 +1,2 @@ +# Object blueprints for Machinist. +require 'faker' \ No newline at end of file diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 491b6b06..16faf94d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,6 +2,7 @@ # from the project root directory. ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") +require File.expand_path(File.dirname(__FILE__) + "/blueprints") require 'spec' require 'spec/rails' include AuthenticatedTestHelper # for restful_authentication @@ -45,4 +46,7 @@ # == Notes # # For more information take a look at Spec::Example::Configuration and Spec::Runner + + # Reset Shams for Machinist. + config.before(:each) {Sham.reset} end