Sha256: bd5145bd080f214c73f4723b24001ae13240e2634e1eae4dbec25fa0c1d47a60

Contents?: true

Size: 660 Bytes

Versions: 28

Compression:

Stored size: 660 Bytes

Contents

require 'spec_helper'

describe WebsiteInquiry do
  before do
    @website = Website.create(:name => "Some Site")
  end
  it "can be instantiated" do
    WebsiteInquiry.new.should be_an_instance_of(WebsiteInquiry)
  end

  it "can be saved successfully" do
    WebsiteInquiry.create().should be_persisted
  end

  describe "send_email" do
    it "should call WebsiteInquiryMailer.inquiry (ask adam about this)" #do
      #@website_inquiry = WebsiteInquiry.create
      #@website.website_inquiries << @website_inquiry
      #WebsiteInquiryMailer.should_receive(:inquiry).with(@website_inquiry).and_return()
      #@website_inquiry.send_email

    #end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
knitkit-3.2.0 spec/models/website_inquiry_spec.rb
knitkit-3.0.0 spec/models/website_inquiry_spec.rb
knitkit-2.1.15 spec/models/website_inquiry_spec.rb
knitkit-2.1.14 spec/models/website_inquiry_spec.rb
knitkit-2.1.13 spec/models/website_inquiry_spec.rb
knitkit-2.1.12 spec/models/website_inquiry_spec.rb
knitkit-2.1.11 spec/models/website_inquiry_spec.rb
knitkit-2.1.10 spec/models/website_inquiry_spec.rb
knitkit-2.1.9 spec/models/website_inquiry_spec.rb
knitkit-2.1.8 spec/models/website_inquiry_spec.rb
knitkit-2.1.7 spec/models/website_inquiry_spec.rb
knitkit-2.1.6 spec/models/website_inquiry_spec.rb
knitkit-2.1.5 spec/models/website_inquiry_spec.rb
knitkit-2.1.4 spec/models/website_inquiry_spec.rb
knitkit-2.1.3 spec/models/website_inquiry_spec.rb
knitkit-2.1.2 spec/models/website_inquiry_spec.rb
knitkit-2.1.1 spec/models/website_inquiry_spec.rb
knitkit-2.1.0 spec/models/website_inquiry_spec.rb
knitkit-2.0.11 spec/models/website_inquiry_spec.rb
knitkit-2.0.10 spec/models/website_inquiry_spec.rb