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.3.4 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.3.3 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.3.2 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.3.1 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classiccms-0.3.0 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
spork-0.9.2 spec/spork/app_framework/rails_spec.rb
classiccms-0.2.4.pre vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
spork-0.9.1 spec/spork/app_framework/rails_spec.rb
classicCMS-0.2.3 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classicCMS-0.2.2 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classicCMS-0.2.1 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classicCMS-0.2.0 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
classicCMS-0.1.2 vendor/bundle/gems/spork-0.9.0/spec/spork/app_framework/rails_spec.rb
spork-0.9.0-x86-mswin32 spec/spork/app_framework/rails_spec.rb
spork-0.9.0-x86-mingw32 spec/spork/app_framework/rails_spec.rb
spork-0.9.0 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc9-x86-mswin32 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc9-x86-mingw32 spec/spork/app_framework/rails_spec.rb
spork-0.9.0.rc9 spec/spork/app_framework/rails_spec.rb