File: climate_control_spec.rb

package info (click to toggle)
ruby-climate-control 0.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 132 kB
  • sloc: ruby: 161; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'spec_helper'

describe 'Climate control' do
  it 'allows modification of the environment' do
    block_run = false
    ClimateControl.modify FOO: 'bar' do
      expect(ENV['FOO']).to eq 'bar'
      block_run = true
    end

    expect(ENV['FOO']).to be_nil
    expect(block_run).to be_truthy
  end
end