Sha256: 560a516f1b189eb557407c12616ac8b6efe64228fc0fee601a565fca617bddf2

Contents?: true

Size: 463 Bytes

Versions: 4

Compression:

Stored size: 463 Bytes

Contents

# encoding: utf-8
require 'helper'

describe T do

  describe "#env" do
    before do
      T.env = "value"
    end
    after do
      T.env = "test"
    end
    it "returns the value" do
      T.env.should == "value"
    end
    it "is inquirable" do
      T.env.value?.should be_true
    end
  end

  describe "#env=" do
    after do
      T.env = "test"
    end
    it "sets the value" do
      T.env = "value"
      T.env.should == "value"
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
t-0.9.9 spec/t_spec.rb
t-0.9.8 spec/t_spec.rb
t-0.9.7 spec/t_spec.rb
t-0.9.6 spec/t_spec.rb