Permalink
Browse files

fix requires so rake actually runs tests

  • Loading branch information...
1 parent a3b3dbb commit a4651c37b50ba50a36991ee64ebe55f4fb7b5c7d @cldwalker cldwalker committed Feb 10, 2012
View
1 spec/relevance/core_extensions/file_spec.rb
@@ -1,5 +1,4 @@
require "spec_helper"
-require 'relevance/core_extensions/file'
describe "Relevance::CoreExtensions::File#extension" do
it "should return the extension without the leading dot" do
View
9 spec/relevance/core_extensions/response_spec.rb
@@ -1,12 +1,11 @@
require "spec_helper"
-require 'relevance/core_extensions/file'
describe "Relevance::CoreExtensions::Response#html?" do
before do
@response = OpenStruct.new
@response.extend(Relevance::CoreExtensions::Response)
- end
-
+ end
+
it "should be html if the content-type is 'text/html'" do
@response.content_type = "text/html"
@response.should be_html
@@ -19,11 +18,11 @@
@response.should_not be_html
end
- # better ideas welcome, but be careful not to
+ # better ideas welcome, but be careful not to
# castrate tarantula for proxies that don't set the content-type
it "should pretend we have html if the content-type is nil" do
@response.content_type = nil
@response.should be_html
end
-
+
end
View
3 spec/relevance/core_extensions/test_case_spec.rb
@@ -1,5 +1,4 @@
require "spec_helper"
-require 'relevance/core_extensions/test_case'
describe "TestCase extensions" do
pending "can create the crawler" do
@@ -13,7 +12,7 @@
expects(:tarantula_crawler).returns(crawler)
tarantula_crawl(:integration_test_stub, :url => "/foo")
end
-
+
it "should get mixed into ActionController::IntegrationTest" do
ActionController::IntegrationTest.ancestors.should include(Relevance::CoreExtensions::TestCaseExtensions)
end
View
1 spec/spec_helper.rb
@@ -13,6 +13,7 @@
end
puts "==== Testing with Rails #{Rails::VERSION::STRING} ===="
+require 'relevance/tarantula'
require 'bundler'
Bundler.require
require 'ostruct'

0 comments on commit a4651c3

Please sign in to comment.