Sha256: 348a54cf31dbbc24dfd64e245b100ea647dded979d473ea221e17aa18c8b0806

Contents?: true

Size: 522 Bytes

Versions: 66

Compression:

Stored size: 522 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Spork::AppFramework do
  describe ".detect_framework" do
    it "detects when rails is installed and available" do
      create_file("config/environment.rb", "RAILS_GEM_VERSION = '2.1.0'")
      in_current_dir do
        Spork::AppFramework.detect_framework.short_name.should == "Rails"
      end
    end
  
    it "returns Unknown when no framework known detected" do
      Spork::AppFramework.detect_framework.short_name.should == "Unknown"
    end
  end
end

Version data entries

66 entries across 66 versions & 10 rubygems

Version Path
panjiva-spork-0.8.6 spec/spork/app_framework_spec.rb
panjiva-spork-0.8.5.1 spec/spork/app_framework_spec.rb
panjiva-spork-0.8.5 spec/spork/app_framework_spec.rb
bmabey-spork-0.5.9 spec/spork/app_framework_spec.rb
smtlaissezfaire-spork-0.5.7 spec/spork/app_framework_spec.rb
timcharper-spork-0.5.10 spec/spork/app_framework_spec.rb
timcharper-spork-0.5.5 spec/spork/app_framework_spec.rb
timcharper-spork-0.5.6 spec/spork/app_framework_spec.rb
timcharper-spork-0.5.7 spec/spork/app_framework_spec.rb
timcharper-spork-0.5.8 spec/spork/app_framework_spec.rb
timcharper-spork-0.5.9 spec/spork/app_framework_spec.rb
timcharper-spork-0.6.0 spec/spork/app_framework_spec.rb
timcharper-spork-0.6.1 spec/spork/app_framework_spec.rb
timcharper-spork-0.6.2 spec/spork/app_framework_spec.rb
timcharper-spork-0.6.3 spec/spork/app_framework_spec.rb
spork-0.9.0.rc8-x86-mswin32 spec/spork/app_framework_spec.rb
spork-0.9.0.rc8-x86-mingw32 spec/spork/app_framework_spec.rb
spork-0.8.5 spec/spork/app_framework_spec.rb
spork-0.9.0.rc8 spec/spork/app_framework_spec.rb
spork-0.9.0.rc7 spec/spork/app_framework_spec.rb