Sha256: 231bd5be07762fe4df141e58d2b7bc5204af54c6c50f98b9906783c045ed2149
Contents?: true
Size: 615 Bytes
Versions: 2
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' require 'blinky_billd/controller' describe BlinkyBilld::Controller do let(:blinky) { mock 'Blinky' } let(:light) { mock 'Light' } let(:billd_status) { mock 'Billd::Status' } let(:uri) { '//build/status' } before { Blinky.should_receive(:new).and_return(blinky) } before { Billd::Status.should_receive(:new).with(uri).and_return(billd_status) } before { billd_status.should_receive(:overall).and_return(:success_or_failure) } before { blinky.should_receive(:light).and_return(light) } before { light.should_receive(:success_or_failure) } it { BlinkyBilld::Controller.run(uri) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blinky_billd-0.0.3 | spec/blinky_billd/controller_spec.rb |
blinky_billd-0.0.2 | spec/blinky_billd/controller_spec.rb |