Sha256: 303418b2a1d5d9ae2781718c078ef978d5b8076f06204fa53790bfa939425135

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

require 'rspec/lucky7_spec_helper'

describe Lucky7::Renders, ".render" do
  it "renders collection js template code" do
    code= Renders.render :template, :object
    code.should == "={\"template\":object}"
  end
  
  it "renders inline js template" do
    code= Lucky7::Renders.render :template
    code.should == "={\"template\":__context}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
collin-lucky7-0.0.1 rspec/lucky7/renders_spec.rb