Sha256: 98e9cc4bdbb2f38ecdacfe1022f7eb05ec1336fee196a8ae81746fdc96badd96

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 Bytes

Contents

require 'simplecov'
SimpleCov.start

require 'rspec'
require 'spigot'
require 'hashie'
require 'active_record'

require File.join(Spigot.root, 'script/active_record.rb')
Dir[File.join(Spigot.root, 'spec/fixtures/**/*.rb')].each { |f| require f }

# Mocked Classes
User = Class.new(Hashie::Mash) do
  include Spigot::Base
end
Post = Class.new(Hashie::Mash)

class ActiveUser < ActiveRecord::Base
  include Spigot::Base
end

class Event < ActiveRecord::Base
  include Spigot::Base
end

class Profile < ActiveRecord::Base
  include Spigot::Base
end

module Wrapper
  Post = Class.new(Hashie::Mash)
end

RSpec.configure do |config|
  config.after(:each) do
    ActiveUser.delete_all
    Spigot.config.reset
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spigot-0.3.3 spec/spec_helper.rb
spigot-0.3.2 spec/spec_helper.rb
spigot-0.3.1 spec/spec_helper.rb
spigot-0.3.0 spec/spec_helper.rb