Sha256: b52a9a888e84f7e8adb1ccd182b0030a6b04c78052df76f4d602e9dc2af803c7
Contents?: true
Size: 467 Bytes
Versions: 7
Compression:
Stored size: 467 Bytes
Contents
RSpec.describe Evil::Client::Options do let(:options) { described_class.new source } let(:source) { { foo: :FOO, bar: :BAR, baz: :BAZ } } describe "#slice" do subject { source.slice :foo, :baz } it "slices keys from a hash" do expect(subject).to eq foo: :FOO, baz: :BAZ end end describe "#except" do subject { source.except :foo, :baz } it "removes keys from a hash" do expect(subject).to eq bar: :BAR end end end
Version data entries
7 entries across 7 versions & 1 rubygems