spec/unit/hanami/config/views_spec.rb in hanami-2.0.3 vs spec/unit/hanami/config/views_spec.rb in hanami-2.1.0.beta1

- old
+ new

@@ -37,24 +37,10 @@ .to change { views.layouts_dir }.to("custom_layouts") .and(dont.change { Hanami::View.config.layouts_dir }) end describe "specialised default values" do - describe "paths" do - it 'is ["templates"]' do - expect(views.paths).to match [ - an_object_satisfying { |path| path.dir.to_s == "templates" } - ] - end - end - - describe "template_inference_base" do - it 'is "views"' do - expect(views.template_inference_base).to eq "views" - end - end - describe "layout" do it 'is "app"' do expect(views.layout).to eq "app" end end @@ -65,13 +51,9 @@ views.finalize! end it "is frozen" do expect(views).to be_frozen - end - - it "does not allow changes to locally defined settings" do - expect { views.parts_path = "parts" }.to raise_error(Dry::Configurable::FrozenConfigError) end it "does not allow changes to base view settings" do expect { views.paths = [] }.to raise_error(Dry::Configurable::FrozenConfigError) end