Sha256: 5a91fb0970269af053d761abcdfd26cb0323408f0684aafcc9e1bfef938f4bd2
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
describe Models::Core::Application do it { should validate_presence_of(:name) } it { should validate_presence_of(:account_id) } it { should ensure_length_of(:name).is_at_most(256) } it { should have_many(:domains) } context "default values" do it "has a random api_token" do app1 = create(:application) app2 = create(:application) app1.api_token.length.should == 32 app1.api_token.should_not == app2.api_token end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restpack_core_service-0.0.14 | spec/models/application_spec.rb |
restpack_core_service-0.0.13 | spec/models/application_spec.rb |
restpack_core_service-0.0.12 | spec/models/application_spec.rb |