sunspot_matchers_testunit 1.0 → 1.1

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.
@@ -12,6 +12,8 @@ Palermo, rewritten for use with Test::Unit.
12
12
 
13
13
  # Installation
14
14
 
15
+ To get started, `gem install sunspot_matchers_testunit` from the command prompt or add it to your Gemfile.
16
+
15
17
  You will need to replace the Sunspot Session object with the spy provided. You can do this globally by putting the
16
18
  following in a setup block or your test_helper.
17
19
 
@@ -153,13 +153,13 @@ module SunspotMatchersTestunit
153
153
  end
154
154
  end
155
155
 
156
- def assert_has_search_params(session, method_and_args)
156
+ def assert_has_search_params(session, *method_and_args)
157
157
  method, *args = method_and_args
158
158
  matcher = HaveSearchParams.new(session, method, *args).get_matcher
159
159
  assert matcher.match?, matcher.missing_param_error_message
160
160
  end
161
161
 
162
- def assert_has_no_search_params(session, method_and_args)
162
+ def assert_has_no_search_params(session, *method_and_args)
163
163
  method, *args = method_and_args
164
164
  matcher = HaveSearchParams.new(session, method, *args).get_matcher
165
165
  assert !matcher.match?, matcher.unexpected_match_error_message
@@ -1,3 +1,3 @@
1
1
  module SunspotMatchersTestunit
2
- VERSION = "1.0"
2
+ VERSION = "1.1"
3
3
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunspot_matchers_testunit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 0
9
- version: "1.0"
8
+ - 1
9
+ version: "1.1"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christine Yen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-20 00:00:00 Z
17
+ date: 2011-06-21 00:00:00 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: bundler