version_info 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/version_info/version_info.yml +1 -1
- data/spec/version_info/version_info_spec.rb +10 -2
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -62,7 +62,11 @@ describe "VersionInfo defaults" do
|
|
62
62
|
File.stub!(:open).and_yield(io)
|
63
63
|
TestFile::VERSION.bump(:minor)
|
64
64
|
TestFile::VERSION.save
|
65
|
-
|
65
|
+
if RUBY_PATCHLEVEL >= 290 # asume ruby 1.9.2
|
66
|
+
io.string.should == "---\nmajor: 0\nminor: 1\npatch: 0\n"
|
67
|
+
else
|
68
|
+
io.string.should == "--- \nmajor: 0\nminor: 1\npatch: 0\n"
|
69
|
+
end
|
66
70
|
end
|
67
71
|
|
68
72
|
it "can save custom data " do
|
@@ -71,7 +75,11 @@ describe "VersionInfo defaults" do
|
|
71
75
|
TestFile::VERSION.bump(:minor)
|
72
76
|
TestFile::VERSION.author = 'jcangas'
|
73
77
|
TestFile::VERSION.save
|
74
|
-
|
78
|
+
if RUBY_PATCHLEVEL >= 290 # asume ruby 1.9.2
|
79
|
+
io.string.should == "---\nmajor: 0\nminor: 1\npatch: 0\nauthor: jcangas\n"
|
80
|
+
else
|
81
|
+
io.string.should == "--- \nmajor: 0\nminor: 1\npatch: 0\nauthor: jcangas\n"
|
82
|
+
end
|
75
83
|
end
|
76
84
|
|
77
85
|
it "can load " do
|