Sha256: e9d3ccad3d032d66c934269392efefe1cbc7640838a97c0cdd1733ba84e2446c
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
require 'test_helper' class RspecIntegrationTest < Minitest::Test include TestConstruct::Helpers test 'rspec integration' do lib_path = File.realpath('lib') within_construct do |construct| spec_file_name = 'rspec_spec.rb' construct.file(spec_file_name, <<-RSPEC) require 'test_construct/rspec_integration' describe 'test_construct', test_construct: true do it 'accesses metadata' do |example| f = example.metadata[:construct].file "somefile", "abcd" expect(f.size).to eq 4 end end RSPEC output = `rspec -I '#{lib_path}' #{spec_file_name}` assert $CHILD_STATUS.success?, output end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
test_construct-2.0.2 | test/rspec_integration_test.rb |
test_construct-2.0.1 | test/rspec_integration_test.rb |