spec/webmachine/actionview/resource_spec.rb in webmachine-actionview-0.0.1 vs spec/webmachine/actionview/resource_spec.rb in webmachine-actionview-0.0.2

- old
+ new

@@ -12,13 +12,14 @@ let(:response) { nil } let(:resource) { HomeResource.new(request, response) } let(:unconventional_resource) { UnconventionalName.new(request, response) } - before :all do + before do Webmachine::ActionView.configure do |c| c.view_paths = ['spec/dummy/views'] + c.default_layout = 'layouts/application' end end describe "Default places to look for templates" do describe "the path set" do @@ -64,9 +65,10 @@ it { should include('id: 1') } it { should include('name: some name') } it { should include('content from the application layout')} it { should include('content from shared/some_partial')} + it { should include('local content')} end describe "Explicit template rendering" do subject(:rendered) { resource.to_html } \ No newline at end of file