Skip to content
Browse files

Adding some testing to the LogsHelper

  • Loading branch information...
1 parent af01f7f commit 66c58eaaa2e4ddba96570fa1de42786f14764cce @eedrummer eedrummer committed Jun 14, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 spec/helpers/logs_helper_spec.rb
View
8 spec/helpers/logs_helper_spec.rb
@@ -11,5 +11,11 @@
# end
# end
describe LogsHelper do
- pending "add some examples to (or delete) #{__FILE__}"
+ it "should be able to add the time to the rest of the params" do
+ existing_params = {:page => 4}
+ helper.params[:log_start_date] = 'tomorrow'
+ helper.time_range_params_plus(existing_params)
+ existing_params[:page].should == 4
+ existing_params[:log_start_date].should == 'tomorrow'
+ end
end

0 comments on commit 66c58ea

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