Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding some testing to the LogsHelper

  • Loading branch information...
commit 66c58eaaa2e4ddba96570fa1de42786f14764cce 1 parent af01f7f
Andy Gregorowicz eedrummer authored

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. +7 1 spec/helpers/logs_helper_spec.rb
8 spec/helpers/logs_helper_spec.rb
@@ -11,5 +11,11 @@
11 11 # end
12 12 # end
13 13 describe LogsHelper do
14   - pending "add some examples to (or delete) #{__FILE__}"
  14 + it "should be able to add the time to the rest of the params" do
  15 + existing_params = {:page => 4}
  16 + helper.params[:log_start_date] = 'tomorrow'
  17 + helper.time_range_params_plus(existing_params)
  18 + existing_params[:page].should == 4
  19 + existing_params[:log_start_date].should == 'tomorrow'
  20 + end
15 21 end

0 comments on commit 66c58ea

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