restspec 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c46f9f361a535a138b94517191fcd3622a7b45ef
4
- data.tar.gz: 173ca11a7b1bc0d4a3be11a6cd491997da54f270
3
+ metadata.gz: de5251a9e3e32953609663e29cb388eef297313c
4
+ data.tar.gz: 960f05d8b3b8c78708c337ed66bb651ee155840a
5
5
  SHA512:
6
- metadata.gz: bdf8602fb535055ee98dc6753db44c22b766a8fc7898ad8d50a6b6395ddc387e70384184aaba44caf060183d2255055de8851a42156b97d54d33b4f585947af7
7
- data.tar.gz: 566e5a69dbed569b2558a1423966af4eda52d731bb9cf0613d672399be1c453b880d03fed843cf09ba1bd96a98d7519d729ae4a86dca8849681975640f2d98ce
6
+ metadata.gz: 5cfbc59c795fd60fd30af87e429fb9bb297756c3f54e13264c9df3684363be83598e34a730dea7f7654a2c3568f2b314c3a78b5d87b09d64bdb4ac47d127479a
7
+ data.tar.gz: bf7938db06c32d471b211013faf38d9a2365f2c1797ec9684761e8308236d611f9f827f1cce165bf1cffab0d665a5d31802d92ed9a22b4d8306c2f5acf122b48
@@ -5,6 +5,12 @@ end
5
5
 
6
6
  require 'active_support/core_ext/object'
7
7
  require 'active_support/json'
8
+ require 'active_support/concern'
9
+ require 'action_view/helpers/capture_helper'
10
+ require 'action_view/helpers/output_safety_helper'
11
+ require 'action_view/helpers/tag_helper'
12
+ require 'action_view/helpers/sanitize_helper'
13
+ require 'action_view/helpers/text_helper'
8
14
 
9
15
  require "restspec/values/status_code"
10
16
  require "restspec/values/super_hash"
@@ -148,6 +148,8 @@ module Restspec
148
148
  end
149
149
 
150
150
  class NoObjectError < StandardError
151
+ include ActionView::Helpers::TextHelper
152
+
151
153
  attr_accessor :object
152
154
 
153
155
  def initialize(object)
@@ -155,7 +157,7 @@ module Restspec
155
157
  end
156
158
 
157
159
  def to_s
158
- "The object #{object}:#{object.class} is not a hash. It doesn't have attributes to be checked"
160
+ "The object #{truncate object.to_s, escape: false}:#{object.class} is not a hash. It doesn't have attributes to be checked"
159
161
  end
160
162
  end
161
163
  end
@@ -1,3 +1,3 @@
1
1
  module Restspec
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "yard", "~> 0.8.7"
28
28
  spec.add_development_dependency "redcarpet", "~> 3.2"
29
29
  spec.add_dependency "activesupport", "~> 4.0"
30
+ spec.add_dependency "actionview", "~> 4.0"
30
31
  spec.add_dependency "faker", "~> 1.4"
31
32
  spec.add_dependency "hashie", "~> 3.3"
32
33
  spec.add_dependency "rack", "~> 1.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - juliogarciag
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-05 00:00:00.000000000 Z
11
+ date: 2015-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - ~>
137
137
  - !ruby/object:Gem::Version
138
138
  version: '4.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: actionview
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: '4.0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ~>
151
+ - !ruby/object:Gem::Version
152
+ version: '4.0'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: faker
141
155
  requirement: !ruby/object:Gem::Requirement