spec/spec_helper.rb in nesta-0.9.2 vs spec/spec_helper.rb in nesta-0.9.3

- old
+ new

@@ -1,11 +1,11 @@ -require "rubygems" -require "spec" -require "spec/interop/test" -require "rack/test" -require "rspec_hpricot_matchers" -require "sinatra" +require 'rubygems' +require 'spec' +require 'spec/interop/test' +require 'rack/test' +require 'rspec_hpricot_matchers' +require 'sinatra' Test::Unit::TestCase.send :include, Rack::Test::Methods Spec::Runner.configure do |config| config.include(RspecHpricotMatchers) @@ -16,14 +16,14 @@ set :environment, :test set :reload_templates, true end end -require File.expand_path("../lib/nesta/app", File.dirname(__FILE__)) +require File.expand_path('../lib/nesta/app', File.dirname(__FILE__)) module FixtureHelper - FIXTURE_DIR = File.expand_path("fixtures", File.dirname(__FILE__)) + FIXTURE_DIR = File.expand_path('fixtures', File.dirname(__FILE__)) def create_fixtures_directory FileUtils.mkdir_p(FixtureHelper::FIXTURE_DIR) end @@ -60,13 +60,11 @@ @config[key] = value end end def stub_configuration(options = {}) - stub_config_key("title", "My blog", options) - stub_config_key("subtitle", "about stuff", options) - stub_config_key("description", "great web site", options) - stub_config_key("keywords", "home, page", options) - content_path = File.join(FixtureHelper::FIXTURE_DIR, "content") - stub_config_key("content", content_path, options.merge(:rack_env => true)) + stub_config_key('title', 'My blog', options) + stub_config_key('subtitle', 'about stuff', options) + content_path = File.join(FixtureHelper::FIXTURE_DIR, 'content') + stub_config_key('content', content_path, options.merge(:rack_env => true)) end end