codez-tarantula 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2ZjNTdmNTQ2NzcxZmYzMDhmMGQ0MjFmMjBlZWU0NmNhZThmYTVmYw==
4
+ ODQxNDU0NGJhMWE5YzI2MjNlZjk0MmNkNzhmYzg0YzA0MDRmM2ZkZA==
5
5
  data.tar.gz: !binary |-
6
- NTBiYTY1ZTkwNDliMDU0YWIxODYwMzhlNjZjM2M4N2YyNjZlZjAwOA==
6
+ Y2ExYTcwMTU3ZjYzNWY4YWYzNzQxM2FiNmU3MDNkMTJiNWFlYWJiZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzE2ZDQ2MTgyMDM2Njg5MGE1NWJiNzA0ZmM5Y2UyOTA5MGU4OWJjMDMxMzJk
10
- NDg3Y2NhOGYxODg1ZmVkZmRmODc5ZWYzMGQ2NWE3MWQwODc0MDZkZGU4ZDVj
11
- OWJhMGE5OGI3N2VjOWZjNWVmNDE3NmM5ZTFhZjgxNmFkM2ZkMTk=
9
+ ZmRlZTM3ZWRkNjMxYzQ5OGZkNTBkMjgwN2Q5NDM2OTE4NDc4NTZhZGE2OTU4
10
+ OTg1ZTRkZTdkYjg4NGQ5ZTYwZTM5OTZkMzg1Mjc4ZjhmZTgzMDg1NDIzOTUw
11
+ OGQxMWRkZTY5YmUzNmJhNTA0ZjA3NDJhNmFjOWNmNmEzYzQ2N2Q=
12
12
  data.tar.gz: !binary |-
13
- NDc2M2FkMDgxYzFiMDJjNjFkOTdkNzc2NGUzNmI4MzYzMDQzZTgwMDA4YzM2
14
- ZTFmZjQwZmQ3YjM0NTUxODdmNTVlMWEyZTc3NzliOGI5ZmQ4ZGJmMDQ0Y2E2
15
- MjI4ZDMyOTQ4MmU0ODQ5YTg2N2I5NDVjYzliYTkwODY0NTU1NWU=
13
+ MDhjZGU5ZGUyNmRlNjJiOGFmMTc0Y2VmYzM0NjM3NGQwYjY2OTVlZTU0MWUz
14
+ ZDhjYmI2Y2MyZDRmYWM2ZjA0MjE1YTVhZmVkOGI0NjU3MjhmNjE3ZTIzZjUx
15
+ YjdkYmQwOTU3MzQxNGY5ZmQ1NWE5ZjIzOWM1ZGUzMTQxMWU3Zjk=
@@ -18,4 +18,6 @@ end
18
18
 
19
19
  if defined? ActionController::IntegrationTest
20
20
  ActionController::IntegrationTest.class_eval { include Relevance::CoreExtensions::TestCaseExtensions }
21
- end
21
+ elsif defined? ActionDispatch::IntegrationTest
22
+ ActionDispatch::IntegrationTest.class_eval { include Relevance::CoreExtensions::TestCaseExtensions }
23
+ end
@@ -1,3 +1,4 @@
1
+ require 'rails'
1
2
  require 'active_record'
2
3
  require 'active_record/base'
3
4
  require File.expand_path(File.join(File.dirname(__FILE__), "rails_integration_proxy"))
@@ -1,3 +1,5 @@
1
+ require 'action_view'
2
+
1
3
  module Relevance
2
4
  module Tarantula
3
5
 
@@ -76,7 +78,7 @@ module Relevance
76
78
  'get'
77
79
  end
78
80
  end
79
-
81
+
80
82
  def url
81
83
  href
82
84
  end
@@ -1,4 +1,8 @@
1
- require 'test/unit'
1
+ begin
2
+ require 'minitest/unit'
3
+ rescue LoadError
4
+ require 'test/unit'
5
+ end
2
6
 
3
7
  module Relevance
4
8
  module Tarantula
@@ -1,5 +1,5 @@
1
1
  module Relevance
2
2
  module Tarantula
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.3"
4
4
  end
5
5
  end
@@ -14,6 +14,7 @@ describe "TestCase extensions" do
14
14
  end
15
15
 
16
16
  it "should get mixed into ActionController::IntegrationTest" do
17
- ActionController::IntegrationTest.ancestors.should include(Relevance::CoreExtensions::TestCaseExtensions)
17
+ klass = defined?(ActionController::IntegrationTest) ? ActionController::IntegrationTest : ActionDispatch::IntegrationTest
18
+ klass.ancestors.should include(Relevance::CoreExtensions::TestCaseExtensions)
18
19
  end
19
20
  end
@@ -3,7 +3,7 @@ require "spec_helper"
3
3
  describe Relevance::Tarantula do
4
4
  include Relevance::Tarantula
5
5
  attr_accessor :verbose
6
-
6
+
7
7
  it "writes to stdout if verbose" do
8
8
  self.verbose = true
9
9
  expects(:puts).with("foo")
@@ -15,8 +15,8 @@ describe Relevance::Tarantula do
15
15
  expects(:puts).never
16
16
  log("foo")
17
17
  end
18
-
19
- it "puts RAILS_ROOT behind a method call" do
18
+
19
+ it "puts RAILS_ROOT behind a method call", pending: true do
20
20
  lambda{rails_root}.should raise_error(NameError)
21
21
  end
22
22
  end
data/spec/spec_helper.rb CHANGED
@@ -6,10 +6,10 @@ end
6
6
  require "rails/version"
7
7
  puts "==== Testing with Rails #{Rails::VERSION::STRING} ===="
8
8
 
9
- require 'relevance/tarantula'
10
9
  require 'bundler'
11
10
  Bundler.require
12
11
  require 'ostruct'
12
+ require 'relevance/tarantula'
13
13
 
14
14
  def test_output_dir
15
15
  File.join(File.dirname(__FILE__), "..", "tmp", "test_output")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codez-tarantula
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Relevance, Inc.
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-06 00:00:00.000000000 Z
12
+ date: 2014-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: htmlentities
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  requirements: []
225
225
  rubyforge_project:
226
- rubygems_version: 2.1.11
226
+ rubygems_version: 2.2.2
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: A big hairy fuzzy spider that crawls your site, wreaking havoc