Sha256: 139edcb17fddb8e146135096313ae0deaef0a30510f49746f088cca1caf277ca

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

require 'spec_helper'
require 'rails/generators/ripple/js/js_generator'

describe Ripple::Generators::JsGenerator do
  before { run_generator }

  it "should create an app/mapreduce directory" do
    file('app/mapreduce').should exist
  end

  it "should copy all standard JS files into the mapreduce directory" do
    Dir[file('app/mapreduce/*')].sort.map{|f| File.basename(f) }.should == %w{contrib.js iso8601.js ripple.js}
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
wyngle-ripple-0.1.0 spec/generators/ripple/js_generator_spec.rb
ripple-1.0.0.beta2 spec/generators/ripple/js_generator_spec.rb