Sha256: e59cd71c6505648acc9f960f1a7b80a4da53163cffbb861a69b3356faf74203d
Contents?: true
Size: 628 Bytes
Versions: 3
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(spec: :start_website) do |task| task.pattern = 'spec/test_gem_spec.rb' end directory 'logs' desc 'Start virtual web service' task start_website: :logs do mkdir_p 'logs' ENV['test_site_pid'] = Process.spawn('jekyll', 'serve', '-s', 'test_site', err: %w[logs/test_site.log w]).to_s sleep 2 # Wait a little for virtual server to start up puts 'Running test site on pid ' + ENV['test_site_pid'] ENV['PAGE_URL'] = 'http://127.0.0.1:4000' end task default: :spec
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
generic_test-0.1.3 | Rakefile |
generic_test-0.1.2 | Rakefile |
generic_test-0.1.1 | Rakefile |