Sha256: cacec32bb39578db3c07188704815435257919b4e96da4529ff949e843100845
Contents?: true
Size: 430 Bytes
Versions: 43
Compression:
Stored size: 430 Bytes
Contents
describe "Prime.env" do before do ENV['PRIME_ENV'] = 'staging' end it 'to_s should return string' do Prime.env.to_s.is_a?(String).should.be.true end it 'should be comparable with string' do (Prime.env == 'staging').should.be.true (Prime.env == 'test').should.be.false end it 'should respond to question mark' do Prime.env.staging?.should.be.true Prime.env.test?.should.be.false end end
Version data entries
43 entries across 43 versions & 1 rubygems