diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cfcaac1..aa638f7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -36,6 +36,6 @@ Dir[File.join(File.dirname(__FILE__), "factories/*.rb")].each {|f| require f } # not sure if this really adds anything, but this existed in the intial version of the spree_digital rspec testing RSpec::Matchers.define :have_valid_factory do |factory_name| match do |model| - FactoryGirl.create(:factory_name).new_record?.should be_false + FactoryGirl.create(factory_name).new_record?.should be_false end end \ No newline at end of file