Module: JsonapiRspec
- Included in:
- BeJsonApiResponse, BeJsonApiResponseFor
- Defined in:
- lib/jsonapi_rspec.rb,
lib/jsonapi_rspec/version.rb,
lib/jsonapi_rspec/configuration.rb
Defined Under Namespace
Classes: Configuration
Constant Summary collapse
- VERSION =
'0.2.2'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
8 9 10 |
# File 'lib/jsonapi_rspec.rb', line 8 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
14 15 16 17 |
# File 'lib/jsonapi_rspec.rb', line 14 def configure self.configuration ||= Configuration.new yield(configuration) end |
.root ⇒ Object
10 11 12 |
# File 'lib/jsonapi_rspec.rb', line 10 def root Pathname.new(File.dirname(__FILE__)).parent end |
Instance Method Details
#failure_message ⇒ Object
20 21 22 |
# File 'lib/jsonapi_rspec.rb', line 20 def "#{@failure_message} - parsed response: #{pretty_response}" end |
#failure_message_when_negated ⇒ Object
24 25 26 27 |
# File 'lib/jsonapi_rspec.rb', line 24 def @failure_message = "handle method 'failure_message_when_negated' in custom_matchers.rb" "#{@failure_message}: #{pretty_response}" end |