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