Sha256: 3876d55f8940a7eeb1bc4f17224d6da68815a646c2ae948713542cdbfe4a38bc

Contents?: true

Size: 675 Bytes

Versions: 2

Compression:

Stored size: 675 Bytes

Contents

require 'spec_helper'

describe "usage", :type => :feature do
  # let(:dummy_path) { File.expand_path('../../dummy', __FILE__) }
  # let(:components_path) { File.join(dummy_path, 'components') }

  # before do
  #   Dir.chdir(dummy_path) do
  #     `bower install`
  #   end
  # end

  # after do
  #   Dir.entries(components_path).select do |entry|
  #     if File.directory? File.join(components_path, entry) and !(entry =='.' || entry == '..')
  #       FileUtils.rm_rf(File.join(components_path, entry))
  #     end
  #   end
  # end

  it "includes bower assets via Sprockets" do
    visit '/assets/application.js'
    page.should have_content("Coolio = {};")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bower-0.0.2 spec/features/bower_integration_spec.rb
bower-0.0.1 spec/features/bower_integration_spec.rb