File: version_spec.rb

package info (click to toggle)
ruby-vcr 6.0.0%2Breally5.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,320 kB
  • sloc: ruby: 8,456; sh: 177; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'spec_helper'

describe "VCR.version" do
  subject { VCR.version }

  it { should =~ /\A\d+\.\d+\.\d+(\.\w+)?\z/ }

  describe '#parts' do
    subject { super().parts }
    it { should be_kind_of(Array)  }
  end

  describe '#major' do
    subject { super().major }
    it { should be_kind_of(Integer) }
  end

  describe '#minor' do
    subject { super().minor }
    it { should be_kind_of(Integer) }
  end

  describe '#patch' do
    subject { super().patch }
    it { should be_kind_of(Integer) }
  end
end