Sha256: 59f43853d21b76bcc3426e837780ab8599a3b2a02ad4be4d2edfbe8793f45464

Contents?: true

Size: 333 Bytes

Versions: 10

Compression:

Stored size: 333 Bytes

Contents

RSpec.describe Flipper::Expressions::Time do
  let(:time) { Time.now.round }

  describe "#call" do
    it "returns time for #to_s format" do
      expect(described_class.call(time.to_s)).to eq(time)
    end

    it "returns time for #iso8601 format" do
      expect(described_class.call(time.iso8601)).to eq(time)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flipper-1.3.2 spec/flipper/expressions/time_spec.rb
flipper-1.3.1 spec/flipper/expressions/time_spec.rb
flipper-1.3.0 spec/flipper/expressions/time_spec.rb
flipper-1.3.0.pre spec/flipper/expressions/time_spec.rb
flipper-1.2.2 spec/flipper/expressions/time_spec.rb
flipper-1.2.1 spec/flipper/expressions/time_spec.rb
flipper-1.2.0 spec/flipper/expressions/time_spec.rb
flipper-1.1.2 spec/flipper/expressions/time_spec.rb
flipper-1.1.1 spec/flipper/expressions/time_spec.rb
flipper-1.1.0 spec/flipper/expressions/time_spec.rb