Sha256: 6fdd4bf928c8c323c00e301de649683374eadcb2bc22b2efb806668a0bd9b96c
Contents?: true
Size: 990 Bytes
Versions: 1
Compression:
Stored size: 990 Bytes
Contents
# -*- encoding : utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Blacklight do 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 let(:blroot) { File.expand_path(File.join(__FILE__, '..', '..', '..' )) } 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-5.0.0.pre1 | spec/lib/blacklight_spec.rb |