Lines Matching refs:expect
28 expect { GRPC::Core::CompressionOptions.new.to_s }.to_not raise_error
33 expect(options.to_channel_arg_hash).to eq(options.to_hash)
44 expect(options.algorithm_enabled?(algorithm)).to be true
47 expect(options.disabled_algorithms).to be_empty
48 expect(options.default_algorithm).to be nil
49 expect(options.default_level).to be nil
50 expect(options.to_hash).to be_instance_of(Hash)
61 expect(options.algorithm_enabled?(algorithm)).to be false
62 expect(options.disabled_algorithms.include?(algorithm)).to be true
65 expect(options.default_algorithm).to be(:identity)
66 expect(options.default_level).to be(:none)
67 expect(options.to_hash).to be_instance_of(Hash)
77 expect(options.algorithm_enabled?(:deflate)).to be false
78 expect(options.algorithm_enabled?(:gzip)).to be true
79 expect(options.disabled_algorithms).to eq([:deflate])
81 expect(options.default_algorithm).to be(:gzip)
82 expect(options.default_level).to be(:low)
83 expect(options.to_hash).to be_instance_of(Hash)
93 expect(options.algorithm_enabled?(algorithm)).to be(true)
96 expect(options.disabled_algorithms).to be_empty
97 expect(options.default_algorithm).to be(:identity)
98 expect(options.default_level).to be(:high)
99 expect(options.to_hash).to be_instance_of(Hash)
106 expect { blk.call }.to raise_error
111 expect { blk.call }.to raise_error
118 expect(options.default_algorithm).to be(nil)
125 expect(options.default_level).to be(nil)
132 expect(options.disabled_algorithms).to be_empty
145 expect { blk.call }.to raise_error