Sha256: 4c96e6a27b62daa3e5ec625a6423a759455a9e537c586c1f1e9b7f53da829943

Contents?: true

Size: 569 Bytes

Versions: 11

Compression:

Stored size: 569 Bytes

Contents

require 'test_helper'
require 'gem-wrappers/specification'
require 'gem-wrappers/version'

describe GemWrappers::Specification do

  before do
    GemWrappers::Specification.instance_variable_set(:@gem_wrappers_spec, nil)
  end

  it "finds specification" do
    GemWrappers::Specification.find.name.must_equal("gem-wrappers")
  end

  it "gets specification version" do
    GemWrappers::Specification.version.must_equal(GemWrappers::VERSION)
  end

  it "does not find imaginary gems" do
    GemWrappers::Specification.find("imaginary-gem").must_equal(nil)
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gem-wrappers-1.3.1 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.3.0 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.7 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.6.1 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.6 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.5 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.4 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.3 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.2 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.1 test/gem-wrappers/specification_and_version_test.rb
gem-wrappers-1.2.0 test/gem-wrappers/specification_and_version_test.rb