Sha256: 13218e71cf75c63316ce46270421036f20fc3230409fc59579464789018cc9fc
Contents?: true
Size: 570 Bytes
Versions: 3
Compression:
Stored size: 570 Bytes
Contents
describe Noam::Beacon do describe "#new" do it "creates a new beacon" do beacon = Noam::Beacon.new(:name, :host, :noam) beacon.name.should == :name beacon.host.should == :host beacon.port.should == :noam end end describe "::discover" do before do FakeManager.start end after do FakeManager.stop end it "creates a Beacon based on server beacons" do beacon = Noam::Beacon.discover beacon.should be_a(Noam::Beacon) beacon.port.should == NoamTest::FakeServer::PORT end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
noam_lemma-0.2.1.2 | spec/noam_lemma/beacon_spec.rb |
noam_lemma-0.2.1.1 | spec/noam_lemma/beacon_spec.rb |
noam_lemma-0.2.1 | spec/noam_lemma/beacon_spec.rb |