Sha256: baf0030ce3e695947fdbdafa25217c59f724c3ee34d7dd788e936e62bc35232c
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
describe RestPack::Core::Service::Models::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) } it { subject.class.table_name.should == 'restpack_applications' } 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
5 entries across 5 versions & 1 rubygems