Skip to content

Commit

Permalink
Merge c5713fa into 6442103
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrs-ledovskis committed Oct 6, 2019
2 parents 6442103 + c5713fa commit 7b4cb93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tmuxinator/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def version
if tmux_version == "master"
TMUX_MASTER_VERSION
else
tmux_version.to_f
tmux_version[/\d+\.\d+$/, 0].to_f
end
end
end
Expand Down
5 changes: 5 additions & 0 deletions spec/lib/tmuxinator/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
let(:version) { "2.4" }
it { is_expected.to eq version.to_f }
end

context "text prefixed" do
let(:version) { "next-3.1" }
it { is_expected.to eq 3.1 }
end
end

describe "#default_path_option" do
Expand Down

0 comments on commit 7b4cb93

Please sign in to comment.