Skip to content

Commit

Permalink
Updating unit test to match new name
Browse files Browse the repository at this point in the history
Signed-off-by: gbright <gary.bright@niu-solutions.com>
  • Loading branch information
gbright committed Dec 2, 2016
1 parent b70e703 commit 6488600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/libraries/json_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
describe 'Collector::JsonFile methods' do
it 'writes the report to a file on disk' do
report = 'some info'
timestamp = Time.now.utc.to_s.tr(' ', '_')
timestamp = Time.now.utc.to_s.tr(' ', '_').tr(':', '-')
@jsonfile = Collector::JsonFile.new(report, timestamp).send_report
expected_file_path = File.expand_path("../../../../inspec-#{timestamp}.json", __FILE__)
expect(File).to exist("#{expected_file_path}")
Expand Down

0 comments on commit 6488600

Please sign in to comment.