Sha256: 011250fbee09c103123ef5a1f03699d2df79700334c1580014614693ddc0b394

Contents?: true

Size: 352 Bytes

Versions: 8

Compression:

Stored size: 352 Bytes

Contents

# Verify if the input has the value
#
# @author Isabella Santos
#
# @param name [String]
# @param object [Object]
# @param value [String, Integer]
#
def verify_input_value(name, object, value, default = nil)
  expect(object[name]).to eq value
  expect(find_field(name).value).to eq value.to_s

  unless default.nil?
    object[name] = default
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
spree_zaez_billet-3.0.4.1 spec/support/verify_input_field.rb
spree_zaez_billet-3.0.4 spec/support/verify_input_field.rb
spree_zaez_clearsale-3.0.3 spec/support/verify_input_field.rb
spree_zaez_clearsale-3.0.2 spec/support/verify_input_field.rb
spree_zaez_billet-3.0.3 spec/support/verify_input_field.rb
spree_zaez_billet-3.0.2 spec/support/verify_input_field.rb
spree_zaez_clearsale-3.0.1 spec/support/verify_input_field.rb
spree_zaez_billet-3.0.1 spec/support/verify_input_field.rb