Skip to content

Commit 411d5ac

Browse files
authored
Merge pull request #4839 from ZahBenjamin/#4790
Item View - Change value from cents to dollars
2 parents 456d4cd + fb60280 commit 411d5ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/items/show.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</tr>
4646
<tr>
4747
<th>Value Per Item</th>
48-
<td><%= @item.value_in_cents || 0 %></td>
48+
<td>$<%= @item.value_in_dollars || 0 %></td>
4949
</tr>
5050
<tr>
5151
<th>Quantity per Individual</th>

spec/requests/items_requests_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
expect(response.body).to include('Category')
205205
expect(response.body).to include('CURRENTCATEGORY')
206206
expect(response.body).to include('Value Per Item')
207-
expect(response.body).to include('20000')
207+
expect(response.body).to include('$200.0')
208208
expect(response.body).to include('Quantity per Individual')
209209
expect(response.body).to include('2000')
210210
expect(response.body).to include('On hand minimum quantity')

0 commit comments

Comments
 (0)