Sha256: 3bbb88bd5063ed8f756e1850229752cffe79672c7fadacb6c8b407b9e5f6489c
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 Bytes
Contents
describe Rsbe::Client::Connection do let(:same_origin_url) { 'http://localhost:3000/api/v0/partners/2f096796-c685-444f-a4fe-5971346b159d' } let(:different_origin_url) { 'http://localhost:3001/api/v0/partners/2f096796-c685-444f-a4fe-5971346b159d' } context "when created" do subject { Rsbe::Client::Connection.new } it { should be_a(Rsbe::Client::Connection) } end describe "same_origin?" do context "with a url from the same origin" do subject { Rsbe::Client::Connection.new.same_origin?(same_origin_url) } it { should == true } end context "with a url from a different origin" do subject { Rsbe::Client::Connection.new.same_origin?(different_origin_url) } it { should == false } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rsbe-client-0.5.1 | spec/rsbe/client/connection_spec.rb |
rsbe-client-0.5.0 | spec/rsbe/client/connection_spec.rb |