Sha256: d255350fc58fb9f82858608dc50d28b80b3094c5272db54460492816de141e19
Contents?: true
Size: 611 Bytes
Versions: 4
Compression:
Stored size: 611 Bytes
Contents
require 'test_helper' require 'rails/generators/test_case' require 'generators/dynamic_paperclip/install_generator.rb' class InstallGeneratorTest < Rails::Generators::TestCase tests DynamicPaperclip::InstallGenerator destination File.expand_path("../../tmp", __FILE__) setup :prepare_destination test 'generates secret and configures DynamicPaperclip to use it' do SecureRandom.expects(:urlsafe_base64).with(50).returns('supersecurestring') run_generator assert_file "config/initializers/dynamic_paperclip.rb", <<-init DynamicPaperclip.config.secret = 'supersecurestring' init end end
Version data entries
4 entries across 4 versions & 1 rubygems