Sha256: 70daa118d2a47dedea2918062401943a76d595d876a8382a9624ae91e472b777
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 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) create_user(:jane, :firstname => 'Jane', :lastname => 'Doe', :enabled => false) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scoped_from-0.2 | spec/spec_helper.rb |
scoped_from-0.1 | spec/spec_helper.rb |