class RspecApiHelpers::Strategies::LoginHashStrategy
Public Class Methods
new()
click to toggle source
# File lib/rspec_api_helpers/strategies/login_hash_strategy.rb, line 6 def initialize @strategy = FactoryGirl.strategy_by_name(:create).new end
Public Instance Methods
result(evaluation)
click to toggle source
# File lib/rspec_api_helpers/strategies/login_hash_strategy.rb, line 12 def result(evaluation) user = @strategy.result(evaluation) { 'user' => { 'email' => user.email, 'password' => user.password } } end