root/spec/includes/defaults/rails_example_group.rb

Download in other formats: Raw | Text
Revisions
Dimitrij Denissenko
Dimitrij Denissenko
Jan 24 2009 * 15:11
(over 1 year ago)

Revision 6c43d2fcbda7ef4129b7589af66c5d6680d601bb

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