Skip to content

Commit

Permalink
Default Jasmine::RunnerConfig to take Jasmine::Config
Browse files Browse the repository at this point in the history
  • Loading branch information
ragaskar committed Jul 14, 2012
1 parent d5aa623 commit ef10991
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/jasmine/run_specs.rb
Expand Up @@ -10,7 +10,7 @@
require 'spec'
end

jasmine_runner_config = Jasmine::RunnerConfig.new(Jasmine::Config.new)
jasmine_runner_config = Jasmine::RunnerConfig.new
formatter = Jasmine::RspecFormatter.new(jasmine_runner_config)

should_stop = false
Expand Down
2 changes: 1 addition & 1 deletion lib/jasmine/runner_config.rb
@@ -1,6 +1,6 @@
module Jasmine
class RunnerConfig
def initialize(config)
def initialize(config = Jasmine::Config.new)
@config = config
end

Expand Down
2 changes: 1 addition & 1 deletion lib/jasmine/tasks/jasmine.rake
Expand Up @@ -48,7 +48,7 @@ namespace :jasmine do
port = ENV['JASMINE_PORT'] || 8888
puts "your tests are here:"
puts " http://localhost:#{port}/"
Jasmine::SpecBuilder.new(Jasmine::RunnerConfig.new(Jasmine::Config.new)).start_server(port)
Jasmine::SpecBuilder.new(Jasmine::RunnerConfig.new).start_server(port)
end
end

Expand Down

0 comments on commit ef10991

Please sign in to comment.