Sha256: ded3f6d655393e7f257a250ba461b33f94605d643c03564a1f72b90663c1d393

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'

describe ActiveAdmin::Views::Pages::Show do

  describe "the resource" do
    let(:helpers) { mock(:resource => resource) }
    let(:arbre_context) { Arbre::Context.new({}, helpers) }

    context 'when the resource does not respond to #decorator' do
      let(:resource) { 'Test Resource' }

      it "normally returns the resource" do
        page = ActiveAdmin::Views::Pages::Show.new(arbre_context)
        page.resource.should == 'Test Resource'
      end
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aa-rails4-0.6.0 spec/unit/views/pages/show_spec.rb