Sha256: 16a7e6e218d9b379c230aa4581ac7f2ba2566a55ee3beb9f5c5eaaa2fdfdd345
Contents?: true
Size: 502 Bytes
Versions: 5
Compression:
Stored size: 502 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) page.resource.should == 'Test Resource' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems