Sha256: 689179965bdf04a11a615bf845fe2d0ab3298266951e80ca2c3e75775bffb585

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

require 'test_helper'

class ProductPriceTest < ActiveSupport::IntegrationCase

  setup do
    Product.create(:price => 10.00)
    visit "/products/1"
  end

  test "should display correct price on GET to products#show" do
    assert_match '<span class="price">10.00</span>', page.body
  end

  # this also prove initializer works because vat_rate has been changed to 27.00 
  test "should display correct price.inc_vat on GET to products#show" do
    assert_match '<span class="price_inc_vat">12.70</span>', page.body
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
corrency-0.2.0 test/integration/product_price_test.rb