Sha256: f50374c0f287f4938e00ef842b8012650b6da67c62c789edddf4d1550e765eab
Contents?: true
Size: 893 Bytes
Versions: 5
Compression:
Stored size: 893 Bytes
Contents
# Polisher Fedora Spec # # Licensed under the MIT license # Copyright (C) 2013-2014 Red Hat, Inc. require 'polisher/fedora' module Polisher describe Fedora do describe "#gems_owned_by" do it "retrieves gems owned by the specified user" end describe "#versions_for" do it "dispatches to bodhi to retrieve / return versions" do Polisher::Bodhi.should_receive(:versions_for).with('rails').and_return(['1.0.0']) described_class.versions_for('rails').should == ['1.0.0'] end it "should invoke callback" do Polisher::Bodhi.should_receive(:versions_for).with('rails'). and_yield(:bodhi, 'rails', ['1.0.0']) cb = proc {} cb.should_receive(:call).with(:fedora, 'rails', ['1.0.0']) described_class.versions_for('rails', &cb) end end end # describe Fedora end # module Polisher
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
polisher-0.10.2 | spec/fedora_spec.rb |
polisher-0.10.1 | spec/fedora_spec.rb |
polisher-0.9.1 | spec/fedora_spec.rb |
polisher-0.8.1 | spec/fedora_spec.rb |
polisher-0.7.1 | spec/fedora_spec.rb |