File: program_spec.rb

package info (click to toggle)
ruby-mercenary 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 192 kB
  • sloc: ruby: 570; sh: 25; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require "spec_helper"

describe(Mercenary::Program) do
  context "a basic program" do
    let(:program) { Mercenary::Program.new(:my_name) }

    it "can be created with just a name" do
      expect(program.name).to eql(:my_name)
    end

    it "can set its version" do
      version = Mercenary::VERSION
      program.version version
      expect(program.version).to eq(version)
    end
  end
end