Sha256: ba88fdff6172dc9eddc753ce7d93f56e16d0338aee8e06a0b9239cda77b2d153

Contents?: true

Size: 588 Bytes

Versions: 4

Compression:

Stored size: 588 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module CapybaraWebkit
        def self.prepended(base)
          base.class_option :capybara_webkit,
            type: :boolean,
            default: true,
            desc: 'Include CapybaraWebkit for headless browser testing'
        end

        def finish_template
          return super unless options[:capybara] && options[:capybara_webkit]
          gem 'capybara-webkit', group: :test
          copy_file 'capybara_webkit.rb', 'spec/support/capybara_webkit.rb'
          super
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stationed-0.4.0 lib/stationed/generators/plugins/capybara_webkit.rb
stationed-0.3.0 lib/stationed/generators/plugins/capybara_webkit.rb
stationed-0.2.0 lib/stationed/generators/plugins/capybara_webkit.rb
stationed-0.1.0 lib/stationed/generators/plugins/capybara_webkit.rb