Skip to content
Browse files

Change test.

  • Loading branch information...
1 parent f1a6219 commit 01ce6c10f545f391618c8528adcdc20ec479c497 @r00k committed
Showing with 7 additions and 4 deletions.
  1. +1 −0 .rvmrc
  2. +6 −4 spec/data_clump_spec.rb
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm use 1.9.3
View
10 spec/data_clump_spec.rb
@@ -3,11 +3,13 @@
describe OrdersReport do
describe '#total_sales_within_range' do
it 'returns total sales in range' do
- order_placed_this_week = Order.new(amount: 5, placed_at: Date.new(2012, 1, 28))
- order_placed_last_week = Order.new(amount: 5, placed_at: Date.new(2012, 1, 1))
- orders = [order_placed_this_week, order_placed_last_week]
+ order_within_range = Order.new(amount: 5, placed_at: Date.new(2012, 1, 28))
+ order_out_of_range = Order.new(amount: 5, placed_at: Date.new(2012, 1, 1))
+ orders = [order_within_range, order_out_of_range]
- OrdersReport.new(orders, Date.new(2012, 1, 15), Date.new(2012, 1, 30)).total_sales_within_range.should == 5
+ OrdersReport.
+ new(orders, Date.new(2012, 1, 15), Date.new(2012, 1, 30)).
+ total_sales_within_range.should == 5
end
end
end

0 comments on commit 01ce6c1

Please sign in to comment.
Something went wrong with that request. Please try again.