Sha256: ed0ef7daa0aacb1ee9a0d9d29210ae14ba0f130d68f2a0c876f9f5b5f9e81242
Contents?: true
Size: 857 Bytes
Versions: 7
Compression:
Stored size: 857 Bytes
Contents
require "test_helper" class InstallGeneratorTest < Rails::Generators::TestCase tests Wobapphelpers::Generators::InstallGenerator destination File.expand_path("../../tmp", __FILE__) setup :prepare_destination test "Assert all files are properly created" do run_generator assert_file "config/locales/wobapphelpers.de.yml" assert_file "config/locales/wobapphelpers.en.yml" end test "Assert layout is copied" do run_generator assert_file "app/views/layouts/application.html.erb" do |layout| assert_match(/DOCTYPE html/, layout) assert_match(/navbar-brand/, layout) assert_match(/meta name="viewport"/, layout) end end test "Initializer is copied" do run_generator assert_file "config/initializers/wobapphelpers.rb" do |init| assert_match(/Wobapphelpers.setup/, init) end end end
Version data entries
7 entries across 7 versions & 1 rubygems