Rename jasmine_spec.rb to jasmine_runner.rb to prevent unintended running
This commit is contained in:
parent
1b8a4804b7
commit
8ec5b9761c
|
@ -32,7 +32,7 @@ if ARGV[0] == 'init'
|
|||
copy_unless_exists('spec/javascripts/SpecHelper.js')
|
||||
copy_unless_exists('spec/javascripts/ExampleSpec.js')
|
||||
copy_unless_exists('spec/javascripts/support/jasmine_config.rb')
|
||||
copy_unless_exists('spec/javascripts/support/jasmine_spec.rb')
|
||||
copy_unless_exists('spec/javascripts/support/jasmine_runner.rb')
|
||||
|
||||
rails_tasks_dir = dest_path('lib/tasks')
|
||||
if File.exist?(rails_tasks_dir)
|
||||
|
|
|
@ -8,7 +8,7 @@ class JasmineGenerator < Rails::Generator::Base
|
|||
|
||||
m.directory "spec/javascripts/support"
|
||||
m.file "spec/javascripts/support/jasmine_config.rb", "spec/javascripts/support/jasmine_config.rb"
|
||||
m.file "spec/javascripts/support/jasmine_spec.rb", "spec/javascripts/support/jasmine_spec.rb"
|
||||
m.file "spec/javascripts/support/jasmine_runner.rb", "spec/javascripts/support/jasmine_runner.rb"
|
||||
m.file "spec/javascripts/support/jasmine-rails.yml", "spec/javascripts/support/jasmine.yml"
|
||||
|
||||
m.directory "lib/tasks"
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace :jasmine do
|
|||
Spec::Rake::SpecTask.new(:ci) do |t|
|
||||
t.spec_opts = ["--color", "--format", "specdoc"]
|
||||
t.verbose = true
|
||||
t.spec_files = ['spec/javascripts/support/jasmine_spec.rb']
|
||||
t.spec_files = ['spec/javascripts/support/jasmine_runner.rb']
|
||||
end
|
||||
task :server do
|
||||
require 'spec/javascripts/support/jasmine_config'
|
||||
|
|
|
@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|||
"generators/jasmine/templates/spec/javascripts/support/jasmine-rails.yml",
|
||||
"generators/jasmine/templates/spec/javascripts/support/jasmine.yml",
|
||||
"generators/jasmine/templates/spec/javascripts/support/jasmine_config.rb",
|
||||
"generators/jasmine/templates/spec/javascripts/support/jasmine_spec.rb",
|
||||
"generators/jasmine/templates/spec/javascripts/support/jasmine_runner.rb",
|
||||
"jasmine/contrib/ruby/jasmine_runner.rb",
|
||||
"jasmine/contrib/ruby/jasmine_spec_builder.rb",
|
||||
"jasmine/contrib/ruby/run.html",
|
||||
|
|
Loading…
Reference in New Issue