env.rb 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/lib/env/version.rb +1 -1
- data/lib/env.rb +1 -1
- data/spec/uri_spec.rb +5 -1
- metadata +1 -1
data/Gemfile
CHANGED
data/lib/env/version.rb
CHANGED
data/lib/env.rb
CHANGED
data/spec/uri_spec.rb
CHANGED
@@ -15,7 +15,7 @@ describe Env, 'uri support' do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
context "with a value FOO that is a URI" do
|
18
|
-
URL = 'http://username:password@this.domain.example.com/path?var=val'
|
18
|
+
URL = 'http://username:password@this.domain.example.com:3000/path?var=val'
|
19
19
|
|
20
20
|
before do
|
21
21
|
envfile(%{
|
@@ -48,5 +48,9 @@ describe Env, 'uri support' do
|
|
48
48
|
it "should respond to #user with the user" do
|
49
49
|
ENV['FOO'].user.should == 'username'
|
50
50
|
end
|
51
|
+
|
52
|
+
it "should respond to #port with the port" do
|
53
|
+
ENV['FOO'].port.should == 3000
|
54
|
+
end
|
51
55
|
end
|
52
56
|
end
|