spec/parsers/time_parser_spec.rb in triviacrack-0.6.0 vs spec/parsers/time_parser_spec.rb in triviacrack-0.7.0
- old
+ new
@@ -1,13 +1,13 @@
-require "spec_helper"
+# frozen_string_literal: true
-describe TriviaCrack::Parsers::TimeParser do
+require 'spec_helper'
- describe ".parse" do
-
+describe TriviaCrack::Parsers::TimeParser do
+ describe '.parse' do
subject { TriviaCrack::Parsers::TimeParser.parse raw_data }
- let(:raw_data) { "02/18/2015 00:11:33 EST" }
+ let(:raw_data) { '02/18/2015 00:11:33 EST' }
it { is_expected.to be_a Time }
its(:day) { is_expected.to be 18 }
its(:month) { is_expected.to be 2 }
its(:year) { is_expected.to be 2015 }