shared_examples_for "a zelda base model" do it "should respond to the attributes set in the constructor" do @model.foo.should == 'bar' end it "should not respond to attributes not set in the constructor" do lambda { @model.no_not_here_nope }.should raise_error(NoMethodError) end end