Sha256: 0bc634d63d16cc026a4fe4d57153139aab6ba27140df59b5f277ed5fddc18b8a

Contents?: true

Size: 506 Bytes

Versions: 5

Compression:

Stored size: 506 Bytes

Contents

require 'spec_helper'

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

  describe "the resource" do
    let(:helpers) { double 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)
        expect(page.resource).to eq 'Test Resource'
      end
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
active_administration-0.0.3 spec/unit/views/pages/show_spec.rb
activeadministration-0.0.2 spec/unit/views/pages/show_spec.rb
active_administration-0.0.2 spec/unit/views/pages/show_spec.rb
activeadministration-0.0.1 spec/unit/views/pages/show_spec.rb
active_administration-0.0.1 spec/unit/views/pages/show_spec.rb