test/fopen_test.rb in rufus-verbs-0.8 vs test/fopen_test.rb in rufus-verbs-0.9
- old
+ new
@@ -48,6 +48,13 @@
fopen "http://localhost:7777/things" do |res|
assert_equal 200, res.code.to_i
assert_equal "{}", res.body.strip
end
end
+
+ def test_1
+
+ assert_kind_of String, fopen("CHANGELOG.txt").read
+ assert_kind_of String, fopen("file:CHANGELOG.txt").read
+ assert_kind_of String, fopen("http://localhost:7777/items").read
+ end
end