Sha256: 0f16f7e0777c829114c82acd8ed20d3a7540b0cf177073262e5ef08e796834d8

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module Capybara
        def self.prepended(base)
          base.class_option :capybara,
            type: :boolean,
            default: true,
            desc: 'Include Capybara'
        end

        def finish_template
          return super unless options[:capybara]
          gem 'capybara', group: :test
          super
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stationed-0.6.0 lib/stationed/generators/plugins/capybara.rb
stationed-0.5.0 lib/stationed/generators/plugins/capybara.rb
stationed-0.4.0 lib/stationed/generators/plugins/capybara.rb
stationed-0.3.0 lib/stationed/generators/plugins/capybara.rb
stationed-0.2.0 lib/stationed/generators/plugins/capybara.rb
stationed-0.1.0 lib/stationed/generators/plugins/capybara.rb