Sha256: 46b6974726e6d4dbb8c544195443b7a8356f7e242284e27fdef519abb8805675

Contents?: true

Size: 670 Bytes

Versions: 6

Compression:

Stored size: 670 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'

require File.dirname(__FILE__) + '/../lib/scoped_from'

# Support 
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# Mocks
ActiveSupport::Dependencies.autoload_paths << "#{File.dirname(__FILE__)}/mocks"

RSpec.configure do |config|
  config.mock_with(:rspec)
  
  config.include(UserMacro)
  
  config.before(:each) do
    Comment.delete_all
    Post.delete_all
    User.delete_all
    Vote.delete_all
    
    create_user(:john, :firstname => 'John', :lastname => 'Doe', :enabled => true, :admin => true)
    create_user(:jane, :firstname => 'Jane', :lastname => 'Doe', :enabled => false, :admin => false)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
scoped_from-0.6.0 spec/spec_helper.rb
scoped_from-0.5.1 spec/spec_helper.rb
scoped_from-0.5.0 spec/spec_helper.rb
scoped_from-0.5 spec/spec_helper.rb
scoped_from-0.4 spec/spec_helper.rb
scoped_from-0.3 spec/spec_helper.rb