Sha256: e8a9eaa92335a05316c1ecccb13610449bd49f5d3c98f684a8c9d1aef5f4b1fa

Contents?: true

Size: 472 Bytes

Versions: 16

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

describe Jasmine::Headless::CoffeeScriptCache do
  include FakeFS::SpecHelpers

  describe '#action' do
    let(:file) { 'file' }
    let(:data) { 'data' }
    let(:compiled) { 'compiled' }

    before do
      CoffeeScript.expects(:compile).with(data).returns(compiled)
      File.open(file, 'wb') { |fh| fh.print(data) }
    end

    it 'should compile coffeescript' do
      described_class.new(file).action.should == compiled
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
jasmine-headless-webkit-firstbanco-0.9.0.rc.5 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-firstbanco-0.9.0.rc.4 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-firstbanco-0.9.0.rc.3 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-firstbanco-0.9.0.rc.2 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.9.0.rc.2 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.9.0.rc1 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.8.4 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.8.3 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.8.1 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.8.0 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.8.0.alpha.1 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.7.3.2 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.7.3.1 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.7.2 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.7.1 spec/lib/jasmine/headless/coffee_script_cache_spec.rb
jasmine-headless-webkit-0.7.0 spec/lib/jasmine/headless/coffee_script_cache_spec.rb