Sha256: 84c407cc9ac9f1f784ad9baa6a9e9ea437716e885afb85a278cad16f83b22772

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 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.name.should == "Rails"
      end
    end
  
    it "returns Unknown when no framework known detected" do
      Spork::AppFramework.detect_framework.name.should == "Unknown"
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
timcharper-spork-0.5.0 spec/spork/app_framework_spec.rb
spork-0.5.1 spec/spork/app_framework_spec.rb