secure 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/secure/version.rb +1 -1
- data/spec/secure_spec.rb +8 -0
- metadata +3 -3
data/lib/secure/version.rb
CHANGED
data/spec/secure_spec.rb
CHANGED
@@ -82,5 +82,13 @@ describe Secure do
|
|
82
82
|
response.should be_success
|
83
83
|
response.value.should == 45
|
84
84
|
end
|
85
|
+
|
86
|
+
it "should be able to read from an open file" do
|
87
|
+
file = File.open("/etc/hosts")
|
88
|
+
response = Secure.ly({}, file) do |file|
|
89
|
+
file.readline
|
90
|
+
end
|
91
|
+
response.should be_success
|
92
|
+
end
|
85
93
|
end
|
86
94
|
end
|
metadata
CHANGED