Sha256: 5f99e3438c864c61f51f19bdfb459269d9eb14f6494dc9375afc4cf58e700d1f
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("#{__dir__}/../lib/scoped_from") # Support Dir["#{__dir__}/support/**/*.rb"].each { |f| require File.expand_path(f) } # Mocks ActiveSupport::Dependencies.autoload_paths << "#{__dir__}/mocks" RSpec.configure do |config| 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scoped_from-0.8.0 | spec/spec_helper.rb |
scoped_from-0.7.0 | spec/spec_helper.rb |