Sha256: ed4f76aa7f029efc7778332c2b165b4246785a43975ef9f9216107ec7ef41f94

Contents?: true

Size: 275 Bytes

Versions: 10

Compression:

Stored size: 275 Bytes

Contents

RSpec.describe Flipper::Expressions::Now do
  describe "#call" do
    it "returns current time" do
      expect(described_class.call).to be_within(2).of(Time.now.utc)
    end

    it "defaults to UTC" do
      expect(described_class.call.zone).to eq("UTC")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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