Sha256: 3e99eaec9c62f43dbede3f859128573098da2e524a4dd9002ef6e2c5173c9af5
Contents?: true
Size: 967 Bytes
Versions: 13
Compression:
Stored size: 967 Bytes
Contents
require File.join(File.dirname(__FILE__),'spec_helper') require File.join(File.dirname(__FILE__), 'support', 'shared_examples') describe "App" do it_behaves_like "SharedRhoconnectHelper", :rhoconnect_data => false do it "should create app with fields" do @a.id.should == @a_fields[:name] @a1 = App.load(@a_fields[:name]) @a1.id.should == @a.id @a1.name.should == @a_fields[:name] end it "should add source adapters" do @a1 = App.load(@a_fields[:name]) @a1.sources.sort.should == ["FixedSchemaAdapter", "OtherAdapter", "SampleAdapter", "SimpleAdapter"] end it "should force environment default and override setting" do poll_interval_default = Rhoconnect.source_config('OtherAdapter')[:poll_interval] poll_interval_default.should == 201 poll_interval_override = Rhoconnect.source_config('SimpleAdapter')[:poll_interval] poll_interval_override.should == 600 end end end
Version data entries
13 entries across 13 versions & 1 rubygems