Sha256: 3fe143c52d666a9b50622d8262baec768e09a51aae09308cea96646b48c957d7

Contents?: true

Size: 571 Bytes

Versions: 16

Compression:

Stored size: 571 Bytes

Contents

require 'spec_helper'

describe Cany::Recipes::Rails do
  describe 'DSL' do
    let(:spec) do
      Cany::Specification.new do
        name 'test'
      end
    end
    let(:recipe) { spec.recipes[0] }

    it 'should compile assets by default' do
      spec.setup do
        use :rails
      end
      expect(recipe.compile_assets).to eq true
    end

    it 'should be able to disable assets compilation' do
      spec.setup do
        use :rails do
          compile_assets false
        end
      end
      expect(recipe.compile_assets).to eq false
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cany-0.5.7 spec/cany/recipes/rails_spec.rb
cany-0.5.6 spec/cany/recipes/rails_spec.rb
cany-0.5.5 spec/cany/recipes/rails_spec.rb
cany-0.5.4 spec/cany/recipes/rails_spec.rb
cany-0.5.3 spec/cany/recipes/rails_spec.rb
cany-0.5.2 spec/cany/recipes/rails_spec.rb
cany-0.5.1 spec/cany/recipes/rails_spec.rb
cany-0.5.0 spec/cany/recipes/rails_spec.rb
cany-0.4.0 spec/cany/recipes/rails_spec.rb
cany-0.3.0 spec/cany/recipes/rails_spec.rb
cany-0.2.1 spec/cany/recipes/rails_spec.rb
cany-0.2.0 spec/cany/recipes/rails_spec.rb
cany-0.1.3 spec/cany/recipes/rails_spec.rb
cany-0.1.2 spec/cany/recipes/rails_spec.rb
cany-0.1.1 spec/cany/recipes/rails_spec.rb
cany-0.1.0 spec/cany/recipes/rails_spec.rb