Sha256: caaf1e2e936e47cbd4a0469c9d4e0d4cb6834059fbb8e2672755401a0ba80a4f
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
Contents
require 'spec_helper' feature 'Suspend a new project with default configuration' do scenario 'specs pass' do run_firestarter Dir.chdir(project_path) do Bundler.with_clean_env do expect(`rake`).to include('0 failures') end end end scenario 'staging config is inherited from production' do run_firestarter staging_file = IO.read("#{project_path}/config/environments/staging.rb") config_stub = "Dummy::Application.configure do" expect(staging_file).to match(/^require_relative 'production'/) expect(staging_file).to match(/#{config_stub}/), staging_file end if RUBY_PATCHLEVEL == 0 && RUBY_VERSION >= '2.1.0' scenario '.ruby-version does not include patchlevel for Ruby 2.1.0+' do run_firestarter ruby_version_file = IO.read("#{project_path}/.ruby-version") expect(ruby_version_file).to eq "#{RUBY_VERSION}\n" end else scenario '.ruby-version includes patchlevel for all pre-Ruby 2.1.0 versions' do run_firestarter ruby_version_file = IO.read("#{project_path}/.ruby-version") expect(ruby_version_file).to eq "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}\n" end end end
Version data entries
4 entries across 4 versions & 1 rubygems