Sha256: 7e68af8d394c552cc3c6cce4f5573843fdf23fea90c3877188c621d97f5e4fff
Contents?: true
Size: 767 Bytes
Versions: 14
Compression:
Stored size: 767 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe Spork::AppFramework::Rails do describe ".deprecated_version" do it "detects the current version of rails" do create_file("config/environment.rb", "RAILS_GEM_VERSION = '2.1.0'") in_current_dir do Spork::AppFramework::Rails.new.deprecated_version.should == "2.1.0" end create_file("config/environment.rb", 'RAILS_GEM_VERSION = "2.1.0"') in_current_dir do Spork::AppFramework::Rails.new.deprecated_version.should == "2.1.0" end create_file("config/environment.rb", 'RAILS_GEM_VERSION = "> 2.1.0"') in_current_dir do Spork::AppFramework::Rails.new.deprecated_version.should == "> 2.1.0" end end end end
Version data entries
14 entries across 14 versions & 3 rubygems