Sha256: 85c5f2d3ca228d9e62190506a273c6dda6c30a5ca7b5432a8676cab2d46bfa33
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
# -*- encoding : utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Blacklight do around :each do |example| Deprecation.silence(Blacklight) do example.run end end context "locate_path" do it "should find app/controllers/application_controller.rb" do result = Blacklight.locate_path 'app', 'controllers', 'application_controller.rb' result.should_not == nil end it "should not find blah.rb" do result = Blacklight.locate_path 'blah.rb' result.should == nil end end context 'root' do before(:all) do @blroot = File.expand_path(File.join(__FILE__, '..', '..', '..' )) end it 'should return the full path to the BL plugin' do Blacklight.root.should == @blroot end it 'should return the full path to the model directory' do Blacklight.models_dir.should == @blroot + "/app/models" end it 'should return the full path to the controllers directory' do Blacklight.controllers_dir.should == @blroot + "/app/controllers" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-4.7.0 | spec/lib/blacklight_spec.rb |
blacklight-4.7.0.pre1 | spec/lib/blacklight_spec.rb |