class RspecApiHelpers::Strategies::HashStrategy

Public Class Methods

new() click to toggle source
# File lib/rspec_api_helpers/strategies/hash_strategy.rb, line 8
def initialize
  @strategy = FactoryGirl.strategy_by_name(:build).new
end

Public Instance Methods

result(evaluation) click to toggle source
# File lib/rspec_api_helpers/strategies/hash_strategy.rb, line 14
def result(evaluation)
  JSON.parse(@strategy.result(evaluation).to_json).symbolize_keys
end