Sha256: e145b9956c88e2515169369b842c0683e9f00dba09d95309b2f2a12f8b009061
Contents?: true
Size: 595 Bytes
Versions: 27
Compression:
Stored size: 595 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') module PhusionPassenger shared_examples_for "a Rails app that lacks RAILS_GEM_VERSION" do it "loads a random Rails version if the app doesn't specify RAILS_GEM_VERSION" do after_start %q{ File.write("rails_version.txt", Rails::VERSION::STRING) } app = spawn_some_application do |stub| File.write(stub.environment_rb) do |content| content.sub(/^RAILS_GEM_VERSION = .*$/, '') end end File.read("#{app.app_root}/rails_version.txt").should =~ /^(\d+.)+\d+$/ end end end # module PhusionPassenger
Version data entries
27 entries across 27 versions & 4 rubygems