Sha256: 306c94280e4985a0f9c8e70cfc92986b7282f8e7a6778f3b5e6bdd51076e8aaa
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH << File.join(File.dirname(__FILE__), %w{ .. .. }) require 'test_helper' require 'generators/webhookr/init_generator' class InitGeneratorTest < Rails::Generators::TestCase tests Webhookr::Generators::InitGenerator destination File.expand_path('../../../tmp', File.dirname(__FILE__)) setup :prepare_destination def setup @name = 'test_initializer' @initializer = "config/initializers/#{@name}.rb" run_generator Array.wrap(@name) end test 'it should create the initializer' do assert_file @initializer end test 'it should have authorization information' do assert_file @initializer do |content| assert_match(%r{basic_auth\.username}, content) assert_match(%r{basic_auth\.password}, content) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webhookr-0.3.0 | test/integration/webhookr/init_generator_test.rb |