Sha256: 0252d47d1e061854c15b82fc6ad4846562ed7e72dcd728e760713370243a92fc

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

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 == "<div>hello</div>\n"
  end

  it "should accept quotes in strings" do
    @name = "adam"
    ERB['quoted'].render(self).should == "<div class=\"foo\">hello there adam</div>\n"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-erb-0.0.1 spec/spec.rb