spec/unit/renderer_spec.rb in activeadmin-0.1.1 vs spec/unit/renderer_spec.rb in activeadmin-0.2.0

- old
+ new

@@ -42,9 +42,17 @@ renderer.send :set_ivar_on_view, "@my_ivar", 'Hello World' view.instance_variable_get("@my_ivar").should == 'Hello World' end end + context "when initializing from some other object" do + it "should initialize successfully" do + lambda { + Renderer.new "Hello World" + }.should_not raise_exception + end + end + describe "rendering HAML" do before do @haml_renderer = Class.new(Renderer) @haml_renderer.class_eval do def hello_world