Sha256: 7df776d0f1cccc9aec6aaeb1d1b64cc84eb7869206e688f8e81cf10f8a58be26
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 Bytes
Contents
require 'rails_helper' module WebAdmin RSpec.describe User, :type => :model do context "Relatioships" do it { should have_many :posts } it { should have_many :permissions } end describe "#to_s" do it 'return email' do subject.stub(email: "rodrigo@email.com") expect(subject.to_s).to eq "rodrigo@email.com" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
web_admin-0.1.0 | spec/models/admin_web/user_spec.rb |
web_admin-0.0.2 | spec/models/admin_web/user_spec.rb |
web_admin-0.0.1 | spec/models/admin_web/user_spec.rb |