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 == "
hello
\n" end it "should accept quotes in strings" do @name = "adam" ERB['quoted'].render(self).should == "
hello there adam
\n" end end