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

Version Path
spork-0.9.0.rc8-x86-mswin32 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc8-x86-mingw32 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc8 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc7 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc6 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc5 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc4 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc3 spec/spork/app_framework/rails_spec.rb
nimboids-spork-0.8.99 spec/spork/app_framework/rails_spec.rb
nimboids-spork-0.9.0.rc2 spec/spork/app_framework/rails_spec.rb
invo-sporknife-0.1.0.1 spec/spork/app_framework/rails_spec.rb
invo-sporknife-0.1.0 spec/spork/app_framework/rails_spec.rb
invo-sporknife-0.1.0.pre spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc2 spec/spork/app_framework/rails_spec.rb