File: install_generator_spec.rb

package info (click to toggle)
ruby-jquery-atwho-rails 1.5.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 160 kB
  • sloc: ruby: 84; sh: 12; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe Atwho::Generators::InstallGenerator do
  include GeneratorSpec::TestCase

  destination File.expand_path("../../../tmp/", __FILE__)
  before(:all) do
    prepare_destination
    run_generator
  end

  it "generate assets files" do
    if ::Rails.version < "3.1"
      assert_file "public/javascripts/jquery.atwho/jquery.atwho.js"
      assert_file "public/stylesheets/jquery.atwho.css"
    end
  end
end