spec/view_spec.rb in nyara-0.1.pre.0 vs spec/view_spec.rb in nyara-0.1.pre.1

- old
+ new

@@ -45,13 +45,20 @@ it "raises for ambiguous template" do assert_raise ArgumentError do render 'edit', nil, nil, {} end + render 'edit.slim', nil, nil, {} assert_equal "<div>slim:edit</div>", @instance.result.gsub(/\s/, '') render 'edit.haml', nil, nil, {} assert_equal "<div>haml:edit</div>", @instance.result.gsub(/\s/, '') + end + + it "raises error with template not found" do + assert_raise ArgumentError do + render 'asdgasdgasdg' + end end context "fallback to tilt" do it "inline render" do render nil, nil, {a: 3}, {liquid: '{{a}}'}