Sha256: 9e035d03c8824066bb189824ec587b50fb77d89d3491ea6915ca03b8e114764f
Contents?: true
Size: 588 Bytes
Versions: 5
Compression:
Stored size: 588 Bytes
Contents
require 'spec_helper' describe Medlink::Email do describe ":create" do context "valid token" do let(:profession) { Medlink::Profession.new(name: "Interne") } let(:user) { Medlink::User.new(id: 1, first_name: "Julien", last_name: "Vilbert", profession: profession) } let(:email) { Medlink::Email.new(user: user, source: "rspec", value: "test@domain.fr") } before(:each) do VCR.use_cassette "emails" do @created_email = email.create end end it { expect(@created_email.value).to eq("test@domain.fr") } end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
medlink-0.4.1 | spec/emails_spec.rb |
medlink-0.3.0 | spec/emails_spec.rb |
medlink-0.2.2 | spec/emails_spec.rb |
medlink-0.2.1 | spec/emails_spec.rb |
medlink-0.2.0 | spec/emails_spec.rb |