File: cli_spec.rb

package info (click to toggle)
ruby-librarian 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 624 kB
  • sloc: ruby: 6,109; makefile: 11
file content (27 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (7)
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 "securerandom"

require "librarian/rspec/support/cli_macro"

require "librarian/mock/cli"

module Librarian
  module Mock
    describe Cli do
      include Librarian::RSpec::Support::CliMacro

      describe "version" do
        before do
          cli! "version"
        end

        it "should print the version" do
          expect(stdout).to eq strip_heredoc(<<-STDOUT)
            librarian-#{Librarian::VERSION}
            librarian-mock-#{Librarian::Mock::VERSION}
          STDOUT
        end
      end

    end
  end
end