Sha256: 194713a3d0c38cc77c88791f83e8c2f2574127bea461988d4b883d8c410a55ab

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

require "spec_helper"

describe Bushido::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

      Bushido::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

1 entries across 1 versions & 1 rubygems

Version Path
bushido-0.0.36 spec/app_spec/controllers/mail_controller_spec.rb