Sha256: 6a88fe660c4d4c0867de8d5add2a3b777c93ad2d0bcda9b2720710d0a4f8d8a0
Contents?: true
Size: 512 Bytes
Versions: 3
Compression:
Stored size: 512 Bytes
Contents
# -*- coding: utf-8 -*- require 'spec_helper' # user defined in dummy app, uses has_shortened_urls describe User do it { should have_many :shortened_urls } context 'shortened url created with owner' do let (:user) { User.create } let (:shortened_url) { Shortener::ShortenedUrl.generate(Faker::Internet.url, owner: user) } specify 'shorted_urls will contains the url' do expect(user.shortened_urls).to include shortened_url expect(user.shortened_urls.size).to be 1 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shortener-0.5.4 | spec/models/user_spec.rb |
shortener-0.5.3 | spec/models/user_spec.rb |
shortener-0.5.2 | spec/models/user_spec.rb |