Sha256: 2624362e10703a73e7dde0c3aa3252c1cc9724edef8fcb9a475c64731678d7cf
Contents?: true
Size: 921 Bytes
Versions: 3
Compression:
Stored size: 921 Bytes
Contents
ENV['RAILS_ENV'] ||= 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'rack/test' require 'pry' Rails.backtrace_cleaner.remove_silencers! Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } module Stylish def self.fixtures_path Pathname(File.dirname(__FILE__)).join("fixtures") end def self.test_javascript_path Pathname(File.dirname(__FILE__)).join("dummy","app","assets","javascripts") end end Stylish::Developer.config.library_root = Stylish.fixtures_path RSpec.configure do |config| config.mock_with :rspec config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false config.order = "random" config.include Rack::Test config.include Requests::JsonHelpers, type: :request config.after(:suite) do `git checkout spec/fixtures spec/dummy` rescue nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stylish-0.3.1 | spec/spec_helper.rb |
stylish-0.3.0 | spec/spec_helper.rb |
stylish-0.0.2 | spec/spec_helper.rb |