Migrated has_attachment to plugin (compatibility)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Attachment.storage_path = '/dev/null' Spec::Rails::Example::RailsExampleGroup.class_eval do before(:all) do RetroCM[:general][:basic][:site_url] = 'http://test.host' end before(:each) do I18n.stub!(:locale).and_return(:'en-US') Project.stub!(:central).and_return(false) end after(:all) do User.current = nil Project.current = nil end end |
|---|