Sha256: 91ed7c7d65f170c7e65210bfcd9980b32374df4b18667d4df96261a203287521
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require 'test_helper' require_relative '../../../../lib/nesta/commands' describe 'nesta theme:enable' do include TemporaryFiles before do FileUtils.mkdir_p(File.join(project_root, 'config')) File.open(File.join(project_root, 'config', 'config.yml'), 'w').close end after do remove_temp_directory end it 'enables the theme' do Dir.chdir(project_root) do Nesta::Commands::Theme::Enable.new('theme-name').execute assert_match /^theme: theme-name/, File.read('config/config.yml') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nesta-0.12.0 | test/integration/commands/theme/enable_test.rb |