Sha256: 7d8a5014d54e6fb93de26405e6c2711ad0e2a1d35c51944e531ef4a038a6ec4e

Contents?: true

Size: 523 Bytes

Versions: 41

Compression:

Stored size: 523 Bytes

Contents

require 'spec_helper'

class StubApplicationDomainController < Iugu::ApplicationDomainController
  
  def index
    render :text => "true", :status => 200
  end

end

describe StubApplicationDomainController do

  def with_stub_routing
    with_routing do |map|
      map.draw do
        match '/stub/application/domain/index' => "stub_application_domain#index"
      end 
      yield
    end 
  end

  it 'should be_success' do
    with_stub_routing do
      get :index
    end
    response.should be_success
  end
  
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
iugusdk-1.0.11 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.10 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.9 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.8 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.7 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.6 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.5 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.4 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.3 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.2 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.1 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.32 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.31 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.30 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.29 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.28 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.27 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.26 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.25 spec/controllers/application_domain_controller_spec.rb
iugusdk-1.0.0.alpha.24 spec/controllers/application_domain_controller_spec.rb