Sha256: 6eeeec2d4219b7000debfdeee1a54b9ebfe52d86db01a2607abb213d7b154a47
Contents?: true
Size: 897 Bytes
Versions: 3
Compression:
Stored size: 897 Bytes
Contents
require File.join(File.dirname(__FILE__),'spec_helper') 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", "JsSample", "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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rhoconnect-4.0.4 | spec/app_spec.rb |
rhoconnect-4.0.3 | spec/app_spec.rb |
rhoconnect-4.0.2 | spec/app_spec.rb |