Sha256: 273e5066401b7473065b8c01b50765d03ab607681f6d643b281006d3d7db0da0

Contents?: true

Size: 515 Bytes

Versions: 13

Compression:

Stored size: 515 Bytes

Contents

require 'spec_helper'

describe Happy do
  describe '#env' do
    it "is a StringInquirer instance describing the RACK environment" do
      Happy.env.should be_kind_of(ActiveSupport::StringInquirer)
    end

    it "provides #development?, #production? etc." do
      ENV['RACK_ENV'] = 'development'
      Happy.env.should be_development
      Happy.env.should_not be_production

      ENV['RACK_ENV'] = 'production'
      Happy.env.should be_production
      Happy.env.should_not be_development
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
happy-0.1.0 spec/happy_spec.rb
happy-0.1.0.pre28 spec/happy_spec.rb
happy-0.1.0.pre27 spec/happy_spec.rb
happy-0.1.0.pre25 spec/happy_spec.rb
happy-0.1.0.pre24 spec/happy_spec.rb
happy-0.1.0.pre23 spec/happy_spec.rb
happy-0.1.0.pre22 spec/happy_spec.rb
happy-0.1.0.pre21 spec/happy_spec.rb
happy-0.1.0.pre20 spec/happy_spec.rb
happy-0.1.0.pre19 spec/happy_spec.rb
happy-0.1.0.pre16 spec/happy_spec.rb
happy-0.1.0.pre15 spec/happy_spec.rb
happy-0.1.0.pre14 spec/happy_spec.rb