Sha256: d4b2893ff292a731f2a7fe6f435b343d7efbb48e32bc0c965744602545ab653c

Contents?: true

Size: 880 Bytes

Versions: 13

Compression:

Stored size: 880 Bytes

Contents

require 'spec_helper'

describe 'jax:install' do
  before_generation do
    FileUtils.mkdir_p "config"
    FileUtils.touch "config/routes.rb"
  end
  
  it "should mount Jax::Engine in routes" do
    subject.should generate(:route)
  end
  
  it "should generate Coffee application helper" do
    subject.should generate("app/assets/jax/helpers/application_helper.js.coffee")
  end
  
  it "should generate Coffee application controller" do
    subject.should generate("app/assets/jax/controllers/application_controller.js.coffee")
  end
  
  with_args "--without-coffeescript" do
    it "should generate JS application controller" do
      subject.should generate("app/assets/jax/controllers/application_controller.js")
    end
    
    it "should generate JS application helper" do
      subject.should generate("app/assets/jax/helpers/application_helper.js")
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jax-2.0.12 spec/generators/jax/install_generator_spec.rb
jax-2.0.11 spec/generators/jax/install_generator_spec.rb
jax-2.0.10 spec/generators/jax/install_generator_spec.rb
jax-2.0.9 spec/generators/jax/install_generator_spec.rb
jax-2.0.8 spec/generators/jax/install_generator_spec.rb
jax-2.0.7 spec/generators/jax/install_generator_spec.rb
jax-2.0.6 spec/generators/jax/install_generator_spec.rb
jax-2.0.5 spec/generators/jax/install_generator_spec.rb
jax-2.0.4 spec/generators/jax/install_generator_spec.rb
jax-2.0.3 spec/generators/jax/install_generator_spec.rb
jax-2.0.2 spec/generators/jax/install_generator_spec.rb
jax-2.0.1 spec/generators/jax/install_generator_spec.rb
jax-2.0.0 spec/generators/jax/install_generator_spec.rb