Sha256: 4d973a272d5352f901af1fe46d1bfa842690975ad2e399b6e3dc33a04851d004
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
require 'rubygems' require 'bundler/setup' require 'pry' require 'license_finder' require 'rspec' require 'webmock/rspec' require 'rspec/its' ENV['test_run'] = true.to_s Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each do |file| require file end RSpec.configure do |config| config.mock_with :rspec end RSpec.configure do |config| config.around do |example| LicenseFinder::DB.transaction(rollback: :always) { example.run } end config.after(:suite) do ["./doc", "./elsewhere", "./test path", "./config"].each do |tmp_dir| FileUtils.rm_rf(tmp_dir) end end end module LicenseFinder shared_examples "it conforms to interface required by PackageSaver" do it { expect { subject.name }.to_not raise_error } it { expect { subject.version }.to_not raise_error } it { expect { subject.summary }.to_not raise_error } it { expect { subject.description }.to_not raise_error } it { expect { subject.homepage }.to_not raise_error } it { expect { subject.groups }.to_not raise_error } it { expect { subject.children }.to_not raise_error } it { expect { subject.license }.to_not raise_error } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.1.1-java | spec/spec_helper.rb |
license_finder-1.1.1 | spec/spec_helper.rb |
license_finder-1.1.0 | spec/spec_helper.rb |