Sha256: 657ae1407c05770dec34dcc5ad132e50f5016c05db80827898102afae2cc72b4

Contents?: true

Size: 493 Bytes

Versions: 59

Compression:

Stored size: 493 Bytes

Contents

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

59 entries across 59 versions & 3 rubygems

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