Skip to content

Instantly share code, notes, and snippets.

View elja's full-sized avatar

Alex Eliseev elja

View GitHub Profile
context 'Product Options Deletion' do
before(:all) do
any_instance_of(Website::Site) do |klass|
stub(klass).create_default_data { true }
end
@site = FactoryGirl.create(:site)
ActsAsTenant.current_tenant = @site
end
require 'rubygems'
require 'spork'
#uncomment the following line to use spork with the debugger
#require 'spork/ext/ruby-debug'
prefork = lambda {
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)