secure 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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