File: gemspec_spec.rb

package info (click to toggle)
ruby-simplecov 0.22.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: ruby: 5,550; makefile: 10
file content (23 lines) | stat: -rw-r--r-- 413 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

require "open3"

RSpec.describe "gemspec sanity" do
  after do
    File.delete(Dir.glob("simplecov-*.gem").first)
  end

  let(:build) do
    Bundler.with_original_env do
      Open3.capture3("gem build simplecov.gemspec")
    end
  end

  it "has no warnings" do
    expect(build[1]).not_to include("WARNING")
  end

  it "succeeds" do
    expect(build[2]).to be_success
  end
end