Sha256: 8f65ac7c2b221222a2e54b9388cca799f34d99cdec5f4ecd7624abac30571cda
Contents?: true
Size: 1.01 KB
Versions: 10
Compression:
Stored size: 1.01 KB
Contents
module Skellington describe CLI do let :subject do described_class.new end it 'generates javascript files' do expect{ subject.generate 'dummy_app'}.to produce_file 'dummy_app/spec/javascripts/support/jasmine_helper.rb' 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('dummy_app/spec/javascripts/dummy_app_spec.js').to have_content ( """ describe('DummyApp', function() { it('knows the truth', function() { expect(true).toEqual(true) }) }) """ ) expect(File).to exist 'dummy_app/public/js/dummy_app.js' end end end
Version data entries
10 entries across 10 versions & 1 rubygems