Sha256: 0553bb2ba31ff7fa064c1cacdba1a0d743b8560ee1a3c309b6aaa2c901da5caa
Contents?: true
Size: 972 Bytes
Versions: 1
Compression:
Stored size: 972 Bytes
Contents
module Skellington describe CLI do let :subject do described_class.new end it 'generates javascript files' do subject.generate 'dummy_app' expect('dummy_app/spec/javascripts/support/jasmine.yml').to have_content ( """ src_files: - public/js/**/*.js stylesheets: - stylesheets/**/*.css helpers: - helpers/**/*.js spec_files: - '**/*[sS]pec.js' src_dir: spec_dir: spec_helper: spec/javascripts/support/jasmine_helper.rb boot_dir: boot_files: server: 'puma' random: true """ ) expect(File).to exist 'dummy_app/spec/javascripts/support/jasmine_helper.rb' expect('dummy_app/spec/javascripts/dummy_appSpec.js').to have_content ( """ describe('DummyApp', function() { it('knows the truth', function() { expect(true).toEqual(true) }) }) """ ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skellington-0.4.2 | spec/cli/javascript_spec.rb |