Sha256: 2b8ca62f13f34a715b3b9d54ba7465a5f20e1cdd62f5f0cc74e61bf8d7aade21
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
require 'spec_helper' describe Feeder do describe ".config" do end describe ".configure" do context "when no block is given" do it "raises an error" do expect { subject.configure }.to raise_error ArgumentError end end context "when a block is given" do let!(:config) { subject.config } it "yields to the config object" do expect { |b| subject.configure(&b) }.to yield_with_args config end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
feeder-0.3.0 | spec/lib/feeder_spec.rb |
feeder-0.2.0 | spec/lib/feeder_spec.rb |