savon_spec 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Daniel Harrington
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -73,7 +73,7 @@ module Savon
73
73
  private
74
74
 
75
75
  def action=(action)
76
- @action = lower_camelcase(action.to_s).to_sym
76
+ @action = action.is_a?(String) ? action.to_sym : lower_camelcase(action.to_s).to_sym
77
77
  end
78
78
 
79
79
  attr_reader :action
@@ -1,7 +1,7 @@
1
1
  module Savon
2
2
  module Spec
3
3
 
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
 
6
6
  end
7
7
  end
@@ -27,6 +27,12 @@ describe Savon::Spec::Mock do
27
27
  )
28
28
  end
29
29
 
30
+ it "should not lower_camelcase actions that are passed as string" do
31
+ expect { client.request("GetUser") }.to raise_error(
32
+ Savon::Spec::ExpectationError,
33
+ "expected :getUser to be called, got: :GetUser"
34
+ )
35
+ end
30
36
  end
31
37
 
32
38
  describe "#with" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: savon_spec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 1.1.0
10
+ version: 1.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Harrington
@@ -138,6 +138,7 @@ files:
138
138
  - .rspec
139
139
  - .travis.yml
140
140
  - Gemfile
141
+ - LICENSE
141
142
  - README.md
142
143
  - Rakefile
143
144
  - lib/savon/spec.rb