Sha256: be2fe7c3c5a1fefb537cee9520069df08f1fe4e9d6492caf19afe62edb9067c3
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
require 'spec_helper' module Axel module Configurators describe Services do context "service adding" do before { subject.add_service :user_service, "http://user-service.dev" } it "sets up a service object" do subject.services[:user_service].should be_a Configurations::Service end end context "resource adding" do context "without service pre-created" do before { subject.add_resource :boss_service, :boss, service: { url: "http://boss-service.dev" } } it "sets up a resource" do subject.services[:boss_service].should be_a Configurations::Service subject.resources[:boss].should be_a Configurations::Resource end end context "with service pre-created" do before do subject.add_service :user_service, "http://user-service.dev" subject.add_resource :user_service, :user end it "sets up a resource" do subject.services[:user_service].should be_a Configurations::Service subject.resources[:user].should be_a Configurations::Resource end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axel-0.0.1 | spec/lib/axel/configurators/services_spec.rb |