Sha256: 13c3b3e4b1e60c42126493f449eacee5f1b04da0a44e094afbf77269ff21dee4

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

require "spec_helper"
require "dionysus/string/version_match"

describe "String#version_match" do
  subject { "3.2.1" }
  it { should respond_to(:version_match?) }

  context "matches" do
    it { should be_version_match("~> 3") }
    it { should be_version_match("< 4") }
    it { should be_version_match("~> 3.1") }
    it { should be_version_match("~> 3.2.0") }
    it { should be_version_match("~> 3.2.1") }
    it { should be_version_match("= 3.2.1") }
    it { should be_version_match("3.2.1") }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dionysus-2.2.0.0.pre1 spec/lib/string/version_match_spec.rb
dionysus-2.1.0 spec/lib/string/version_match_spec.rb
dionysus-2.0.0 spec/lib/string/version_match_spec.rb