I have this config/initializer.rb which lets me load a yaml /config/application.yaml and do something like APP_CONFIG["myvar"] how could I enable this for my SPECS also?
My goal is to do something like:
require "spec_helper"
describe BetaController do
describe "routing" do
if APP_CONFIG["viral"] and APP_CONFIG["beta"]
it "routes to #index do" do
get("/").should route_to("home#index")
end
end
end
end