Sha256: 5d7d60874622b241048db6739da92353ff6a22f00b3ae6fb9a7806efe6a5c711
Contents?: true
Size: 869 Bytes
Versions: 6
Compression:
Stored size: 869 Bytes
Contents
require 'spec_helper' describe PostMailer do describe "#decorated_email" do subject { Capybara.string(email.body.to_s) } let(:email) { PostMailer.decorated_email(post).deliver } let(:post) { Post.create } it "decorates" do subject.should have_content "Today" end it "can use path helpers with a model" do subject.should have_css "#path_with_model", text: "/en/posts/#{post.id}" end it "can use path helpers with an id" do subject.should have_css "#path_with_id", text: "/en/posts/#{post.id}" end it "can use url helpers with a model" do subject.should have_css "#url_with_model", text: "http://www.example.com/en/posts/#{post.id}" end it "can use url helpers with an id" do subject.should have_css "#url_with_id", text: "http://www.example.com/en/posts/#{post.id}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems