Sha256: fae75043a7fca9801b7aa8f4020379702d44cdbe15325400a7d85ce9b7aec2ec
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
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 manifest" do subject.should generate("app/assets/jax/jax.js.coffee") 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 manifest" do subject.should generate("app/assets/jax/jax.js") end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jax-3.0.0.rc2 | spec/generators/jax/install_generator_spec.rb |
jax-3.0.0.rc1 | spec/generators/jax/install_generator_spec.rb |