Sha256: ea27de7ccd6283b090130ecfe0e93b74c22c4168713ae76d3c44ab8396fe9865
Contents?: true
Size: 592 Bytes
Versions: 10
Compression:
Stored size: 592 Bytes
Contents
require "spec_helper" describe Cloudfuji::MailController do describe "index" do before :each do # Rspec 1.3 doesn't support any_istance. # So we instead stub and object and return that instead obj = Object.new Cloudfuji::Mailroute.should_receive(:routes).and_return(obj) obj.should_receive(:process) end it "should return status 200" do post 'index' if defined?(Rails) && Rails::VERSION::MAJOR == 2 response.status.should == "200 OK" else response.status.should == 200 end end end end
Version data entries
10 entries across 10 versions & 1 rubygems