Sha256: b6bb9a9e7ddfd73b7b4b1eef2a3b51364dd0ee14d628a92548760a8c9bf3d32f
Contents?: true
Size: 350 Bytes
Versions: 1
Compression:
Stored size: 350 Bytes
Contents
require 'spec_helper' describe RailsEnv do it 'runs block when env matches' do block = proc {} expect(block).to receive(:call).with(Rails.configuration) Rails.env.on(:test, &block) end it 'skips block when env matches' do block = proc {} expect(block).not_to receive(:call) Rails.env.on(:production, &block) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-env-0.1.0 | spec/rails-env_spec.rb |