Sha256: 925be6eca20f0cce4c456ce6fad24ebf294a613d7463b8d2562d7e933ad7af0a

Contents?: true

Size: 735 Bytes

Versions: 59

Compression:

Stored size: 735 Bytes

Contents

require '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

59 entries across 59 versions & 3 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.7.4 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.7.3 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.7.2 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.7.1 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.7.0 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.9 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.8 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.7 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.6 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.5 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.4 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.3 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.2 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.1 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.6.0 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.5.17 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.5.16 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.5.15 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.5.14 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb