Sha256: 53ae77530ec00c6b301a39eeed73ba9c52a9d94664e61ede976e231430fdb04e

Contents?: true

Size: 271 Bytes

Versions: 1

Compression:

Stored size: 271 Bytes

Contents

Given /^there is a price of (.+)$/ do |price|
  @meh = BigDecimal.new(price)
end

And /^I know the cost is (.+)$/ do |cost|
  @margin = @meh.margin(cost)
end

Then /^I should get the margin (.+)$/ do |margin|
  assert_equal(BigDecimal.new(margin).to_s, @margin.to_s)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
corrency-0.3.1 features/step_definitions/calculate_profit_margin_from_price_steps.rb