Sha256: 4c14ccda43d02b6978b6d9aaf3bec11159b7de7a0b1b9734bf4110c864d3df69
Contents?: true
Size: 466 Bytes
Versions: 2
Compression:
Stored size: 466 Bytes
Contents
ENV["RAILS_ENV"] = "test" $:.unshift File.dirname(__FILE__) require "rails_app/config/environment" I18n.load_path << File.expand_path("../support/locale/en.yml", __FILE__) require "rspec/rails" RSpec::configure do |c| def c.escaped_path(*parts) Regexp.compile(parts.join('[\\\/]') + '[\\\/]') end c.include RSpec::Rails::ControllerExampleGroup, :type => :controller, :example_group => { :file_path => c.escaped_path(%w[spec controllers]) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
template-switcher-0.0.2 | spec/spec_helper.rb |
template-switcher-0.0.1 | spec/spec_helper.rb |