Sha256: 0950b3d65d27a54712c93fc82a252290ca050600bf1e4d0c9740cdae88682114

Contents?: true

Size: 538 Bytes

Versions: 2

Compression:

Stored size: 538 Bytes

Contents

require 'spec_helper'

describe EmberScript do

  source = <<-eos
class App
  +computed
  myProp: -> 'hello world'
eos

  it 'should compile' do
    result = EmberScript.compile(source)
    result.should =~ /Ember\.Object\.extend/
    result.should =~ /property/
  end

  describe EmberScript::EmberScriptTemplate do

    subject { EmberScript::EmberScriptTemplate.new{ source } }

    it 'should render' do
      result = subject.render
      result.should =~ /Ember\.Object\.extend/
      result.should =~ /property/
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ember_script-0.0.2 spec/ember_script_spec.rb
ember_script-0.0.1 spec/ember_script_spec.rb