config.params_filters << 'my_sensitive_param'config.environment_filters << 'my_sensitive_env'
Replace the merged values accordingly.
Also take note that as of 11/25 proxy support has been added to the HoptoadNotifier thanks to xmlblog.
Random thoughts on software development...
config.params_filters << 'my_sensitive_param'config.environment_filters << 'my_sensitive_env'
@birthdate = Time.local(params['birthdate(1i)'].to_i, params['birthdate(2i)'].to_i, params['birthdate(3i)'].to_i).to_date
Story: Daily hour calculationThe results of running this story looks like this:
As a user
I want to be able to enter my time in and time out into my time sheet
So that I can track my hours
Scenario: calculate whole hours
Given a time in of 2007-07-09 19:00
And a time out of 2007-07-09 21:00
Then the hours should be 2
Scenario: 0 minutes is 0 hours
Given a time in of 2007-07-09 19:00
And a time out of 2007-07-09 19:00
Then the hours should be 0
denethor:stories $ruby day.rbA really neat thing is that the output can be saved to a file and executed.
Running 2 scenarios:
Story: Daily hour calculation
As a user
I want to be able to enter my time in and time out into my time sheet
So that I can track my hours
Scenario: calculate whole hours
Given a time in of 2007-07-09 19:00
And a time out of 2007-07-09 21:00
Then the hours should be 2
.
Scenario: 0 minutes is 0 hours
Given a time in of 2007-07-09 19:00
And a time out of 2007-07-09 19:00
Then the hours should be 0
.
2 scenarios: 2 succeeded, 0 failed, 0 pending