Sha256: 64215f1381467bcafe37c9ca8f6088c6b7b4e9db7d2275b59e7e825b691f226d

Contents?: true

Size: 535 Bytes

Versions: 13

Compression:

Stored size: 535 Bytes

Contents

describe "'<%=file_name%>' shader", ->
  material = mesh = null
  
  beforeEach -> mesh = new Jax.Mesh.Quad()
  
  describe "stand-alone", ->
    beforeEach -> mesh.material = new Jax.Material.<%=class_name%>()
    
    it "should render without error", ->
      expect(-> mesh.render(SPEC_CONTEXT)).not.toThrow()
  
  describe "as a layer", ->
    beforeEach -> mesh.material = new Jax.Material layers: [ type: "<%=class_name%>" ]
    
    it "should render without error", ->
      expect(-> mesh.render(SPEC_CONTEXT)).not.toThrow()

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jax-2.0.12 templates/shader_spec.js.coffee.erb
jax-2.0.11 templates/shader_spec.js.coffee.erb
jax-2.0.10 templates/shader_spec.js.coffee.erb
jax-2.0.9 templates/shader_spec.js.coffee.erb
jax-2.0.8 templates/shader_spec.js.coffee.erb
jax-2.0.7 templates/shader_spec.js.coffee.erb
jax-2.0.6 templates/shader_spec.js.coffee.erb
jax-2.0.5 templates/shader_spec.js.coffee.erb
jax-2.0.4 templates/shader_spec.js.coffee.erb
jax-2.0.3 templates/shader_spec.js.coffee.erb
jax-2.0.2 templates/shader_spec.js.coffee.erb
jax-2.0.1 templates/shader_spec.js.coffee.erb
jax-2.0.0 templates/shader_spec.js.coffee.erb