Sha256: 09f03d4c7ae0549a5d169ac68d853aac6b3fb339212a4bb9df08eb1ac095a9f9
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' feature 'Suspend a new project with default configuration' do scenario 'specs pass' do run_suspenders 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_suspenders staging_file = IO.read("#{project_path}/config/environments/staging.rb") config_stub = "Rails.application.configure do" expect(staging_file).to match(/^require_relative 'production'/) expect(staging_file).to match(/#{config_stub}/), staging_file end if RUBY_VERSION >= '2.1.0' scenario '.ruby-version does not include patchlevel for Ruby 2.1.0+' do run_suspenders 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_suspenders 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
suspenders-1.10.2 | spec/features/new_project_spec.rb |
suspenders-1.10.1 | spec/features/new_project_spec.rb |
suspenders-1.10.0 | spec/features/new_project_spec.rb |