test/ubiquo/options_test.rb in ubiquo-0.1.2 vs test/ubiquo/options_test.rb in ubiquo-0.1.3
- old
+ new
@@ -39,6 +39,13 @@
def test_should_detect_invalid_arguments
opts = Options.new(%w[ --wrong ])
assert_equal "invalid option: --wrong", opts[:invalid_argument]
end
+ def test_should_have_a_version
+ opts = Options.new(%w[ --version myapp])
+ version_file = File.dirname(__FILE__) + "/../../VERSION"
+ version = File.read(version_file).strip
+ assert_equal version, opts[:version]
+ end
+
end