Sha256: 574042484ffb526a6df19602583c1ff135bb87324094c4e4504f334f8e8dcade

Contents?: true

Size: 588 Bytes

Versions: 10

Compression:

Stored size: 588 Bytes

Contents

require File.join(File.dirname(__FILE__),'spec_helper')

describe "App" do
  it_should_behave_like "SpecBootstrapHelper"
  it_should_behave_like "SourceAdapterHelper"
    
  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
    @a.sources << "SimpleAdapter" 
    @a.sources << "SampleAdapter"
    @a1 = App.load(@a_fields[:name])
    @a1.sources.members.sort.should == ["SampleAdapter", "SimpleAdapter"]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rhosync-2.0.0.beta11 spec/app_spec.rb
rhosync-2.0.0.beta10 spec/app_spec.rb
rhosync-2.0.0.beta9 spec/app_spec.rb
rhosync-2.0.0.beta8 spec/app_spec.rb
rhosync-2.0.0.beta7 spec/app_spec.rb
rhosync-2.0.0.beta6 spec/app_spec.rb
rhosync-2.0.0.beta4 spec/app_spec.rb
rhosync-2.0.0.beta3 spec/app_spec.rb
rhosync-2.0.0.beta2 spec/app_spec.rb
rhosync-2.0.0.beta1 spec/app_spec.rb