describe "Opal ERB files" do it "should be defined by their filename" do ERB['simple'].should be_kind_of(ERB) ERB['quoted'].should be_kind_of(ERB) end it "calling the block with a context should render the block" do @some_data = "hello" ERB['simple'].render(self).should == "