Sha256: a3ff245d1c6af8ed40dd47c4b728a0e8ab50fa504b3244f74ae3ac46dafddbbb
Contents?: true
Size: 860 Bytes
Versions: 6
Compression:
Stored size: 860 Bytes
Contents
require File.join(File.dirname(__FILE__), "spec_helper") startup_merb $:.push File.join(File.dirname(__FILE__), "fixtures") describe Kernel, "#use_orm" do before do Merb.orm = :none # reset orm end it "should set Merb.orm" do Kernel.use_orm(:activerecord) Merb.orm.should == :activerecord end end describe Kernel, "#use_template_engine" do before do Kernel.stub!(:dependency) Merb.template_engine = :erb # reset template engine end it "should set Merb.template_engine" do Kernel.use_template_engine(:haml) Merb.template_engine.should == :haml end end describe Kernel, "#use_test" do before do Merb.test_framework = :rspec # reset test framework end it "should set Merb.test_framework" do Kernel.use_test(:test_unit) Merb.test_framework.should == :test_unit end end
Version data entries
6 entries across 6 versions & 1 rubygems