File: acceptance_test.rb

package info (click to toggle)
ruby-spring-watcher-listen 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 124 kB
  • sloc: ruby: 144; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require "helper"

class AcceptanceTest < Spring::Test::AcceptanceTest
  class ApplicationGenerator < Spring::Test::ApplicationGenerator
    def generate_files
      super
      File.write(application.gemfile, "#{application.gemfile.read}gem 'spring-watcher-listen'\n")
    end

    def manually_built_gems
      super + %w(spring-watcher-listen)
    end
  end

  def generator_klass
    ApplicationGenerator
  end

  test "uses the listen watcher" do
    assert_success "bin/rails runner 'puts Spring.watcher.class'", stdout: "Spring::Watcher::Listen"
  end
end