Sha256: a97cbce35843a7d2e45101a480362b63717ccb534a8f45fbe4a1fea3db6e5f70

Contents?: true

Size: 592 Bytes

Versions: 7

Compression:

Stored size: 592 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

7 entries across 7 versions & 1 rubygems

Version Path
outpost-cms-0.1.4 spec/lib/controller/helpers_spec.rb
outpost-cms-0.1.3 spec/lib/controller/helpers_spec.rb
outpost-cms-0.1.2 spec/lib/controller/helpers_spec.rb
outpost-cms-0.1.1 spec/lib/controller/helpers_spec.rb
outpost-cms-0.1.0 spec/lib/controller/helpers_spec.rb
outpost-cms-0.0.5 spec/lib/controller/helpers_spec.rb
outpost-cms-0.0.4 spec/lib/controller/helpers_spec.rb