Sha256: 6c2fa01bafeae98843dc4a0f6837424de756c490e4600d6e4a1a4606770e73f3

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

require 'spec_helper'

describe Outpost::Controller::Helpers do
  let(:controller) { PeopleController.new }

  describe "#model" do
    it "adds model as a helper" do
      controller._helper_methods.should include :model
    end
  end
  
  #------------------------
  
  describe "#notice" do
    context "HTML request" do
      it "adds the notice to flash" do
        pending
      end
    end
    
    context "non-HTML request" do
      it "doesn't add anything to flash" do
        pending
      end
    end
  end

  #------------------------
  
  describe '#preference' do
    pending
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
outpost-cms-0.0.3 spec/lib/controller/helpers_spec.rb