diff --git a/bin/jasmine b/bin/jasmine index f7e688d..7dc6c06 100755 --- a/bin/jasmine +++ b/bin/jasmine @@ -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) diff --git a/generators/jasmine/jasmine_generator.rb b/generators/jasmine/jasmine_generator.rb index 231b0b5..d073b78 100644 --- a/generators/jasmine/jasmine_generator.rb +++ b/generators/jasmine/jasmine_generator.rb @@ -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" diff --git a/generators/jasmine/templates/lib/tasks/jasmine.rake b/generators/jasmine/templates/lib/tasks/jasmine.rake index 9dee07a..0ade498 100644 --- a/generators/jasmine/templates/lib/tasks/jasmine.rake +++ b/generators/jasmine/templates/lib/tasks/jasmine.rake @@ -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' diff --git a/generators/jasmine/templates/spec/javascripts/support/jasmine_spec.rb b/generators/jasmine/templates/spec/javascripts/support/jasmine_runner.rb similarity index 100% rename from generators/jasmine/templates/spec/javascripts/support/jasmine_spec.rb rename to generators/jasmine/templates/spec/javascripts/support/jasmine_runner.rb diff --git a/jasmine.gemspec b/jasmine.gemspec index c68fe35..2331b14 100644 --- a/jasmine.gemspec +++ b/jasmine.gemspec @@ -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",