Sha256: 608719eacff23814cfa82324df247e34f9778fa3b282efea9d0f4409775c61f2

Contents?: true

Size: 768 Bytes

Versions: 8

Compression:

Stored size: 768 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper.rb'

Depo.configure {
  author 'niquola@gmail.com'
  themes ['tundra','verdugo']

  build_options {
    cssOptimize 'comments.keepLines'
    optimize 'shrinksafe.keepLines'
    cssImportIgnore '../dijit.css'
    internStrings 'true'
  }

  build_profile {
    libs<< 'mylib'

    pages<< 'app.pages.admin'
    pages<< 'app.pages.chart'
    pages<< 'app.pages.nurse'
    pages<< 'app.pages.dashboard'
  }
}

class BuildProfileTest < GeneratorTest
  def test_basics
    Depo::Build.generate_profile(:rails_root=>fake_rails_root)
    assert_file 'tmp/dojo_build_profile.js'
    result = read('tmp/dojo_build_profile.js')
    assert_match(/test\/rails_root\/public\/ria\/src\/mylib/, result)
    Depo.clear_config!
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
depo-0.0.8 test/build_profile_test.rb
depo-0.0.7 test/build_profile_test.rb
depo-0.0.6 test/build_profile_test.rb
depo-0.0.5 test/build_profile_test.rb
depo-0.0.4 test/build_profile_test.rb
depo-0.0.3 test/build_profile_test.rb
depo-0.0.2 test/build_profile_test.rb
depo-0.0.1 test/build_profile_test.rb