Sha256: 57c5858c42700ac3a09a3e782c890e467bb346accd00b95f38c2f16c8df2336a
Contents?: true
Size: 702 Bytes
Versions: 3
Compression:
Stored size: 702 Bytes
Contents
describe Models::Core::Domain do it { should validate_presence_of(:identifier) } it { should validate_presence_of(:application_id) } it { should ensure_length_of(:identifier).is_at_most(512) } it { should belong_to(:application) } context "default values" do it "has a random session_secret" do domain1 = create(:domain) domain2 = create(:domain) domain1.session_secret.should_not == nil domain1.session_secret.should_not == domain2.session_secret end it "has empty oauth_providers as default" do create(:domain).oauth_providers.should == [] end it "is not verified" do create(:domain).is_verified.should == false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restpack_core_service-0.0.14 | spec/models/domain_spec.rb |
restpack_core_service-0.0.13 | spec/models/domain_spec.rb |
restpack_core_service-0.0.12 | spec/models/domain_spec.rb |