src/spec/lib/%app_name%/boot/initializer_spec.rb.tt in rgentpl-1.2.6 vs src/spec/lib/%app_name%/boot/initializer_spec.rb.tt in rgentpl-2.0.0
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
describe <%= app_name.camelize %>::Initializer do
describe '#build' do
it 'loads enviroment' do
- expect(<%= app_name.camelize %>.env).to eq TEMPLATE_ENV
+ expect(<%= app_name.camelize %>.env).to eq ENV["TEMPLATE_ENV"]
end
context 'given initializers' do
let(:initializer) do
File.expand_path("#{File.dirname(__FILE__)}/../../../../config/initializers/sample.rb")