Sha256: ab23b22475a3b770541faa9f4c84c1957579435f701a66a98e4a1d88e2a58468

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

require 'spec_helper'

describe Fierce::PresenterFinder do
  let(:fixture_presenter_path) { File.dirname(__FILE__) + "/custom_presenters" }
  
  before do
    Fierce.clear_paths
    Fierce.add_path(fixture_presenter_path)
  end

  let(:finder) { Fierce::PresenterFinder.new('home/index') }

  it "requires the file" do
    finder.perform
    defined?(CustomPresenters).should be_true
  end

  it "return the class" do
    finder.perform.should == CustomPresenters::Home::Index
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fierce-0.1.3 spec/presenter_finder_spec.rb