Sha256: 18debf74727a2a636cddeb9a1e0fb3f6d78e8cdb179e019cafd54f7f4d506963

Contents?: true

Size: 404 Bytes

Versions: 11

Compression:

Stored size: 404 Bytes

Contents

Given(/^there should be (\d+) currency_conversions?$/) do |n|
  expect(@currency_conversions).to_not be_nil
  expect(@currency_conversions.count).to eq(n.to_i)
end

Given(/^the currency_conversion is (\d+)$/) do |conversion_rate|
  CryptocoinPayable::CurrencyConversion.create!(
    currency: 1,
    price: conversion_rate.to_i
  )
  @currency_conversions = CryptocoinPayable::CurrencyConversion.all
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cryptocoin_payable-1.4.5 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.4.4 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.4.3 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.4.2 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.4.1 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.4.0 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.3.0 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.2.0 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.1.0 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.0.1 features/step_definitions/currency_conversion_steps.rb
cryptocoin_payable-1.0.0 features/step_definitions/currency_conversion_steps.rb