remarkable_rails 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -477,8 +477,13 @@ module Remarkable
477
477
  chain = object.should_receive(method)
478
478
 
479
479
  if options.key?(:with)
480
- with = evaluate_value(options[:with])
481
- chain = chain.with(*with)
480
+ with = evaluate_value(options[:with])
481
+
482
+ chain = if with.is_a?(Array)
483
+ chain.with(*with)
484
+ else
485
+ chain.with(with)
486
+ end
482
487
  end
483
488
 
484
489
  times = options[:times] || 1
@@ -94,6 +94,15 @@ describe 'MacroStubs' do
94
94
  }.should_not raise_error
95
95
  end
96
96
 
97
+ it 'should not splat hashes' do
98
+ self.stub!(:current_id).and_return('login' => 'login')
99
+ run_expectations!
100
+
101
+ lambda {
102
+ Task.find('login' => 'login')
103
+ }.should_not raise_error
104
+ end
105
+
97
106
  after(:each) do
98
107
  teardown_mocks_for_rspec
99
108
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remarkable_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Brando
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-05-13 00:00:00 +02:00
13
+ date: 2009-05-15 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -31,7 +31,7 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 3.1.1
34
+ version: 3.1.2
35
35
  version:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: remarkable_activerecord
@@ -41,7 +41,7 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 3.1.1
44
+ version: 3.1.2
45
45
  version:
46
46
  description: "Remarkable Rails: collection of matchers and macros with I18n for Rails"
47
47
  email: